ljerezchaves / ofswitch13

OFSwitch13: OpenFlow 1.3 module for ns-3.
http://www.lrc.ic.unicamp.br/ofswitch13/
GNU General Public License v2.0
24 stars 16 forks source link

Bug in packet_parse function on packets with Ethernet 802.3 header #43

Closed DanielaSousa closed 2 years ago

DanielaSousa commented 3 years ago

https://github.com/ljerezchaves/ofsoftswitch13/blob/23b81fff3b31f92ef365627f7bbf61167f2cf647/udatapath/packet_handle_std.c#L93

This line should be :

eth_type = ntohs(proto->eth_snap->snap_type);

Otherwise, next protocols are not processed.

ljerezchaves commented 2 years ago

Fixed in 0211d4e3b5bba4e564b0f9569fd6ae80d2eb69e8