ref: 3579757291db68f8e17a376476454996b7961bd7
parent: 1f628ef1327882e070394595d58c7bec50d619af
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Nov 15 16:54:03 EST 2016
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...
--- a/sys/src/9/ip/pktmedium.c
+++ b/sys/src/9/ip/pktmedium.c
@@ -16,7 +16,7 @@
Medium pktmedium =
{
.name= "pkt",
-.hsize= 14,
+.hsize= 0,
.mintu= 40,
.maxtu= 4*1024,
.maclen= 6,
@@ -27,7 +27,7 @@
};
/*
- * 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