From 3579757291db68f8e17a376476454996b7961bd7 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 15 Nov 2016 21:54:03 +0100 Subject: 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... --- sys/src/9/ip/pktmedium.c | 4 ++-- 1 file 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 -- cgit v1.2.3