Fix minor bug in flow_extract().
authorBen Pfaff <blp@nicira.com>
Mon, 19 Jan 2009 18:53:03 +0000 (10:53 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 23 Jan 2009 22:05:43 +0000 (14:05 -0800)
commit616d8a8bfb7f71f842eb6b4d0ea6aee8a503fc46
tree579eb8e9d53bafe874226a7552bba3125087283a
parentd7ac3b3b9c779ce7b5cc733347108bec720fa67c
Fix minor bug in flow_extract().

We were treating 802.2 frames that were too short to have a SNAP header as
if they had a dl_type of 0, when really they were supposed to have a
dl_type of OFP_DL_TYPE_NOT_ETH_TYPE.

This bug probably didn't affect anything in practice, because it is very
unusual to have a 802.2 frame that is too short to have a SNAP header,
because any frame that goes over a physical wire will be padded out so
that it is longer than that.
lib/flow.c