Bugzilla – Bug 2157
OpenFlowSwitchNetDevice::BufferFromPacket setting eth_type incorrectly
Last modified: 2015-09-03 01:58:43 EDT
Reported by Kang Chen on ns-developers list. 1. Line 471: eth_h->eth_type = htons (ETH_TYPE_IP); // Ether Type By setting to ETH_TYPE_IP, even arp packets get Ethernet type 0x800 in the flow key. Actually, the function parameter "protocol" tells whether an IP or ARP packet is processed. I then modified it to: If(protocol === ArpL3Protocol::PROT_NUMBER) eth_h->eth_type = htons (ETH_TYPE_ARP); // Ether Type else eth_h->eth_type = htons (ETH_TYPE_IP); // Ether Type
committed in 11627:01fcacb5eedf