From a1f6d5cc3febe6c0c646e739e15079001e23eaa6 Mon Sep 17 00:00:00 2001 From: is Date: Tue, 5 Dec 2006 16:33:56 +0000 Subject: [PATCH] explain magic constant --- sys/netiso/clnp_input.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/netiso/clnp_input.c b/sys/netiso/clnp_input.c index a93e095386e8..136ce5bd955a 100644 --- a/sys/netiso/clnp_input.c +++ b/sys/netiso/clnp_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: clnp_input.c,v 1.31 2006/12/01 18:43:40 is Exp $ */ +/* $NetBSD: clnp_input.c,v 1.32 2006/12/05 16:33:56 is Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -59,7 +59,7 @@ SOFTWARE. */ #include -__KERNEL_RCSID(0, "$NetBSD: clnp_input.c,v 1.31 2006/12/01 18:43:40 is Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clnp_input.c,v 1.32 2006/12/05 16:33:56 is Exp $"); #include "opt_iso.h" @@ -80,6 +80,8 @@ __KERNEL_RCSID(0, "$NetBSD: clnp_input.c,v 1.31 2006/12/01 18:43:40 is Exp $"); #include #include +#include + #include #include #include @@ -199,7 +201,7 @@ next: case IFT_ETHER: bcopy((caddr_t) (mtod(m, struct ether_header *)->ether_dhost), (caddr_t) sh.snh_dhost, 2 * sizeof(sh.snh_dhost)); - m_adj(m, sizeof(struct ether_header) + 3); + m_adj(m, sizeof(struct ether_header) + LLC_UFRAMELEN); break; case IFT_FDDI: bcopy((caddr_t) (mtod(m, struct fddi_header *)->fddi_dhost),