summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-11-15 21:54:03 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-11-15 21:54:03 +0100
commit3579757291db68f8e17a376476454996b7961bd7 (patch)
treee7803b6f73e298dd55e5d94a4c13ade41d621e3c /sys/src/9
parent1f628ef1327882e070394595d58c7bec50d619af (diff)
ip/pktmedium: fix wrong hsize, theres no ethernet header on packet media
packet media is just raw ip packets, so theres no link-level header there. was probably copy-pasted from ethermedium...
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/ip/pktmedium.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/ip/pktmedium.c b/sys/src/9/ip/pktmedium.c
index d978289c4..4a6fe87a6 100644
--- a/sys/src/9/ip/pktmedium.c
+++ b/sys/src/9/ip/pktmedium.c
@@ -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