Deleted Added
full compact
if_arp.h (2168) if_arp.h (4507)
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.2 1994/08/02 07:46:10 davidg Exp $
34 * $Id: if_arp.h,v 1.3 1994/08/21 05:11:41 paul Exp $
35 */
36
37#ifndef _NET_IF_ARP_H_
35 */
36
37#ifndef _NET_IF_ARP_H_
38#define _NET_IF_ARP_H_
38#define _NET_IF_ARP_H_
39
39
40#include <socket.h> /* for struct sockaddr */
41
40/*
41 * Address Resolution Protocol.
42 *
43 * See RFC 826 for protocol description. ARP packets are variable
44 * in size; the arphdr structure defines the fixed-length portion.
45 * Protocol type values are the same as those for 10 Mb/s Ethernet.
46 * It is followed by the variable-sized fields ar_sha, arp_spa,
47 * arp_tha and arp_tpa in that order, according to the lengths

--- 35 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
42/*
43 * Address Resolution Protocol.
44 *
45 * See RFC 826 for protocol description. ARP packets are variable
46 * in size; the arphdr structure defines the fixed-length portion.
47 * Protocol type values are the same as those for 10 Mb/s Ethernet.
48 * It is followed by the variable-sized fields ar_sha, arp_spa,
49 * arp_tha and arp_tpa in that order, according to the lengths

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

85};
86/* arp_flags and at_flags field values */
87#define ATF_INUSE 0x01 /* entry in use */
88#define ATF_COM 0x02 /* completed entry (enaddr valid) */
89#define ATF_PERM 0x04 /* permanent entry */
90#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
91#define ATF_USETRAILERS 0x10 /* has requested trailers */
92
91#endif
93#endif /* !_NET_IF_ARP_H_ */