Deleted Added
full compact
if_arp.h (32350) if_arp.h (32384)
1/*
2 * Copyright (c) 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if_arp.h 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if_arp.h 8.1 (Berkeley) 6/10/93
34 * $Id: if_arp.h,v 1.8 1997/02/22 09:40:59 peter Exp $
34 * $Id: if_arp.h,v 1.9 1998/01/08 23:41:18 eivind Exp $
35 */
36
37#ifndef _NET_IF_ARP_H_
38#define _NET_IF_ARP_H_
39
40/*
41 * Address Resolution Protocol.
42 *

--- 40 unchanged lines hidden (view full) ---

83};
84/* arp_flags and at_flags field values */
85#define ATF_INUSE 0x01 /* entry in use */
86#define ATF_COM 0x02 /* completed entry (enaddr valid) */
87#define ATF_PERM 0x04 /* permanent entry */
88#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
89#define ATF_USETRAILERS 0x10 /* has requested trailers */
90
35 */
36
37#ifndef _NET_IF_ARP_H_
38#define _NET_IF_ARP_H_
39
40/*
41 * Address Resolution Protocol.
42 *

--- 40 unchanged lines hidden (view full) ---

83};
84/* arp_flags and at_flags field values */
85#define ATF_INUSE 0x01 /* entry in use */
86#define ATF_COM 0x02 /* completed entry (enaddr valid) */
87#define ATF_PERM 0x04 /* permanent entry */
88#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
89#define ATF_USETRAILERS 0x10 /* has requested trailers */
90
91#ifdef KERNEL
91/*
92 * Structure shared between the ethernet driver modules and
93 * the address resolution code. For example, each ec_softc or il_softc
94 * begins with this structure.
95 */
96struct arpcom {
97 /*
98 * The ifnet struct _must_ be at the head of this structure.
99 */
100 struct ifnet ac_if; /* network-visible interface */
92/*
93 * Structure shared between the ethernet driver modules and
94 * the address resolution code. For example, each ec_softc or il_softc
95 * begins with this structure.
96 */
97struct arpcom {
98 /*
99 * The ifnet struct _must_ be at the head of this structure.
100 */
101 struct ifnet ac_if; /* network-visible interface */
101 u_char ac_enaddr[ETHER_ADDR_LEN]; /* ethernet hardware address */
102 u_char ac_enaddr[6]; /* ethernet hardware address */
102 int ac_multicnt; /* length of ac_multiaddrs list */
103};
104
103 int ac_multicnt; /* length of ac_multiaddrs list */
104};
105
105#ifdef KERNEL
106extern u_char etherbroadcastaddr[ETHER_ADDR_LEN];
106extern u_char etherbroadcastaddr[6];
107#endif
108
109#endif /* !_NET_IF_ARP_H_ */
107#endif
108
109#endif /* !_NET_IF_ARP_H_ */