explain magic constant

This commit is contained in:
is 2006-12-05 16:33:56 +00:00
parent fe8307c191
commit a1f6d5cc3f
1 changed files with 5 additions and 3 deletions

View File

@ -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 <sys/cdefs.h>
__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 <net/if_ether.h>
#include <net/if_fddi.h>
#include <net/if_llc.h>
#include <netiso/iso.h>
#include <netiso/iso_var.h>
#include <netiso/iso_snpac.h>
@ -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),