net: Pull up the header to determine IP version
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Dec 2016 17:13:42 +0000 (12:13 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commit5f4d4f6f938b935db4d6868f8b9221cf2baa4261
tree6c603870411c13d1788a0ebeb911a1e626a5dbfb
parent0134bfe0d88058d69e4e0afdaf34e875e0526714
net: Pull up the header to determine IP version

There should be a byte in the block header, but with extra_data and SG
stuff, who knows.  My guess is that check was added when IPv6 was put in,
which was probably after the block header management a few lines down.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/ip.c