if_arc.h (103842) | if_arc.h (109771) |
---|---|
1/* $NetBSD: if_arc.h,v 1.13 1999/11/19 20:41:19 thorpej Exp $ */ | 1/* $NetBSD: if_arc.h,v 1.13 1999/11/19 20:41:19 thorpej Exp $ */ |
2/* $FreeBSD: head/sys/net/if_arc.h 103842 2002-09-23 06:25:08Z alfred $ */ | 2/* $FreeBSD: head/sys/net/if_arc.h 109771 2003-01-24 01:32:20Z fjoe $ */ |
3 4/* 5 * Copyright (c) 1982, 1986, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 61 unchanged lines hidden (view full) --- 72} __packed; 73 74#define ARC_ADDR_LEN 1 75 76#define ARC_HDRLEN 3 77#define ARC_HDRNEWLEN 6 78#define ARC_HDRNEWLEN_EXC 10 79 | 3 4/* 5 * Copyright (c) 1982, 1986, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 61 unchanged lines hidden (view full) --- 72} __packed; 73 74#define ARC_ADDR_LEN 1 75 76#define ARC_HDRLEN 3 77#define ARC_HDRNEWLEN 6 78#define ARC_HDRNEWLEN_EXC 10 79 |
80/* these lengths are data link layer length - 2*ARC_ADDR_LEN */ | 80/* these lengths are data link layer length - 2 * ARC_ADDR_LEN */ |
81#define ARC_MIN_LEN 1 82#define ARC_MIN_FORBID_LEN 254 83#define ARC_MAX_FORBID_LEN 256 84#define ARC_MAX_LEN 508 | 81#define ARC_MIN_LEN 1 82#define ARC_MIN_FORBID_LEN 254 83#define ARC_MAX_FORBID_LEN 256 84#define ARC_MAX_LEN 508 |
85#define ARC_MAX_DATA 504 |
|
85 | 86 |
86 | |
87/* RFC 1051 */ 88#define ARCTYPE_IP_OLD 240 /* IP protocol */ 89#define ARCTYPE_ARP_OLD 241 /* address resolution protocol */ 90 91/* RFC 1201 */ 92#define ARCTYPE_IP 212 /* IP protocol */ 93#define ARCTYPE_ARP 213 /* address resolution protocol */ 94#define ARCTYPE_REVARP 214 /* reverse addr resolution protocol */ --- 34 unchanged lines hidden (view full) --- 129 130#ifdef _KERNEL 131extern u_int8_t arcbroadcastaddr; 132extern int arc_ipmtu; /* XXX new ip only, no RFC 1051! */ 133 134void arc_ifattach(struct ifnet *, u_int8_t); 135void arc_ifdetach(struct ifnet *); 136void arc_storelladdr(struct ifnet *, u_int8_t); | 87/* RFC 1051 */ 88#define ARCTYPE_IP_OLD 240 /* IP protocol */ 89#define ARCTYPE_ARP_OLD 241 /* address resolution protocol */ 90 91/* RFC 1201 */ 92#define ARCTYPE_IP 212 /* IP protocol */ 93#define ARCTYPE_ARP 213 /* address resolution protocol */ 94#define ARCTYPE_REVARP 214 /* reverse addr resolution protocol */ --- 34 unchanged lines hidden (view full) --- 129 130#ifdef _KERNEL 131extern u_int8_t arcbroadcastaddr; 132extern int arc_ipmtu; /* XXX new ip only, no RFC 1051! */ 133 134void arc_ifattach(struct ifnet *, u_int8_t); 135void arc_ifdetach(struct ifnet *); 136void arc_storelladdr(struct ifnet *, u_int8_t); |
137char *arc_sprintf(u_int8_t *); | |
138int arc_isphds(int); 139void arc_input(struct ifnet *, struct mbuf *); 140int arc_output(struct ifnet *, struct mbuf *, 141 struct sockaddr *, struct rtentry *); 142int arc_ioctl(struct ifnet *, int, caddr_t); 143 144void arc_frag_init(struct ifnet *); 145struct mbuf * arc_frag_next(struct ifnet *); 146#endif 147 148#endif /* _NET_IF_ARC_H_ */ | 137int arc_isphds(int); 138void arc_input(struct ifnet *, struct mbuf *); 139int arc_output(struct ifnet *, struct mbuf *, 140 struct sockaddr *, struct rtentry *); 141int arc_ioctl(struct ifnet *, int, caddr_t); 142 143void arc_frag_init(struct ifnet *); 144struct mbuf * arc_frag_next(struct ifnet *); 145#endif 146 147#endif /* _NET_IF_ARC_H_ */ |