Add definitions required for new in_cksum.

This commit is contained in:
scw 2003-09-11 18:58:44 +00:00
parent dee68537c2
commit 973e9cff89
1 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: genassym.cf,v 1.4 2003/01/17 21:55:24 thorpej Exp $
# $NetBSD: genassym.cf,v 1.5 2003/09/11 18:58:44 scw Exp $
#
# Copyright (c) 1999 Ben Harris
# All rights reserved.
@ -31,10 +31,16 @@ include <sys/param.h>
include <sys/proc.h>
include <sys/user.h>
include <sys/mbuf.h>
include <netinet/in.h>
include <netinet/in_systm.h>
include <netinet/ip.h>
include <netinet/ip6.h>
include <netinet/ip_var.h>
include <machine/pcb.h>
if NECA > 0
include <sys/mbuf.h>
include <arch/acorn26/ioc/if_ecavar.h>
endif
@ -50,11 +56,14 @@ define TF_SIZE sizeof(struct trapframe)
define IF_R15 offsetof(struct irqframe, if_r15)
define IF_SIZE sizeof(struct irqframe)
if NECA > 0
# Constants required for in_cksum() and friends.
define M_NEXT offsetof(struct mbuf, m_next)
define M_DATA offsetof(struct mbuf, m_data)
define M_LEN offsetof(struct mbuf, m_len)
define IP_SRC offsetof(struct ip, ip_src)
define IP_DST offsetof(struct ip, ip_dst)
if NECA > 0
define EFS_FIQHANDLER offsetof(struct eca_fiqstate, efs_fiqhandler)
define EFS_RX_CURMBUF offsetof(struct eca_fiqstate, efs_rx_curmbuf)
define EFS_RX_FIQREGS offsetof(struct eca_fiqstate, efs_rx_fiqregs)