]> git.lizzy.rs Git - plan9front.git/commitdiff
ip/pktmedium: fix wrong hsize, theres no ethernet header on packet media
authorcinap_lenrek <cinap_lenrek@felloff.net>
Tue, 15 Nov 2016 20:54:03 +0000 (21:54 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Tue, 15 Nov 2016 20:54:03 +0000 (21:54 +0100)
packet media is just raw ip packets, so theres no link-level
header there. was probably copy-pasted from ethermedium...

sys/src/9/ip/pktmedium.c

index d978289c4d340a278d7cd3bb8c9b8bcdb375b5ab..4a6fe87a65d117c9739ec3ace79ea5d5f79aad7a 100644 (file)
@@ -16,7 +16,7 @@ static void   pktin(Fs*, Ipifc*, Block*);
 Medium pktmedium =
 {
 .name=         "pkt",
-.hsize=                14,
+.hsize=                0,
 .mintu=                40,
 .maxtu=                4*1024,
 .maclen=       6,
@@ -27,7 +27,7 @@ Medium pktmedium =
 };
 
 /*
- *  called to bind an IP ifc to an ethernet device
+ *  called to bind an IP ifc to an packet device
  *  called with ifc wlock'd
  */
 static void