Lines 242-254
Link Here
|
242 |
eh.ether_shost[4] = 0x00; |
242 |
eh.ether_shost[4] = 0x00; |
243 |
eh.ether_shost[5] = vhid; |
243 |
eh.ether_shost[5] = vhid; |
244 |
|
244 |
|
245 |
eh.ether_dhost[0] = 0x01; |
245 |
eh.ether_dhost[0] = 0xff; |
246 |
eh.ether_dhost[1] = 0x00; |
246 |
eh.ether_dhost[1] = 0xff; |
247 |
eh.ether_dhost[2] = 0x5e; |
247 |
eh.ether_dhost[2] = 0xff; |
248 |
eh.ether_dhost[3] = 0x00; |
248 |
eh.ether_dhost[3] = 0xff; |
249 |
eh.ether_dhost[4] = 0x00; |
249 |
eh.ether_dhost[4] = 0xff; |
250 |
eh.ether_dhost[5] = 0x12; |
250 |
eh.ether_dhost[5] = 0xff; |
251 |
|
251 |
|
252 |
eh.ether_type = htons(ETHERTYPE_IP); |
252 |
eh.ether_type = htons(ETHERTYPE_IP); |
253 |
|
253 |
|
254 |
memcpy(pkt, &eh, sizeof eh); |
254 |
memcpy(pkt, &eh, sizeof eh); |