Deleted Added
full compact
bootp.h (50476) bootp.h (53105)
1/************************************************************************
2 Copyright 1988, 1991 by Carnegie Mellon University
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted, provided
8that the above copyright notice appear in all copies and that both that

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

18PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21************************************************************************/
22
23/*
24 * Bootstrap Protocol (BOOTP). RFC951 and RFC1395.
25 *
1/************************************************************************
2 Copyright 1988, 1991 by Carnegie Mellon University
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted, provided
8that the above copyright notice appear in all copies and that both that

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

18PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21************************************************************************/
22
23/*
24 * Bootstrap Protocol (BOOTP). RFC951 and RFC1395.
25 *
26 * $FreeBSD: head/libexec/bootpd/bootp.h 50476 1999-08-28 00:22:10Z peter $
26 * $FreeBSD: head/libexec/bootpd/bootp.h 53105 1999-11-12 10:11:48Z marcel $
27 *
28 *
29 * This file specifies the "implementation-independent" BOOTP protocol
30 * information which is common to both client and server.
31 *
32 */
33
34#include "bptypes.h" /* for int32, u_int32 */

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

39#define BP_VEND_LEN 64
40#define BP_MINPKTSZ 300 /* to check sizeof(struct bootp) */
41
42struct bootp {
43 unsigned char bp_op; /* packet opcode type */
44 unsigned char bp_htype; /* hardware addr type */
45 unsigned char bp_hlen; /* hardware addr length */
46 unsigned char bp_hops; /* gateway hops */
27 *
28 *
29 * This file specifies the "implementation-independent" BOOTP protocol
30 * information which is common to both client and server.
31 *
32 */
33
34#include "bptypes.h" /* for int32, u_int32 */

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

39#define BP_VEND_LEN 64
40#define BP_MINPKTSZ 300 /* to check sizeof(struct bootp) */
41
42struct bootp {
43 unsigned char bp_op; /* packet opcode type */
44 unsigned char bp_htype; /* hardware addr type */
45 unsigned char bp_hlen; /* hardware addr length */
46 unsigned char bp_hops; /* gateway hops */
47 unsigned int32 bp_xid; /* transaction ID */
47 u_int32 bp_xid; /* transaction ID */
48 unsigned short bp_secs; /* seconds since boot began */
49 unsigned short bp_flags; /* RFC1532 broadcast, etc. */
50 struct in_addr bp_ciaddr; /* client IP address */
51 struct in_addr bp_yiaddr; /* 'your' IP address */
52 struct in_addr bp_siaddr; /* server IP address */
53 struct in_addr bp_giaddr; /* gateway IP address */
54 unsigned char bp_chaddr[BP_CHADDR_LEN]; /* client hardware address */
55 char bp_sname[BP_SNAME_LEN]; /* server host name */

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

128
129
130/*
131 * "vendor" data permitted for CMU bootp clients.
132 */
133
134struct cmu_vend {
135 char v_magic[4]; /* magic number */
48 unsigned short bp_secs; /* seconds since boot began */
49 unsigned short bp_flags; /* RFC1532 broadcast, etc. */
50 struct in_addr bp_ciaddr; /* client IP address */
51 struct in_addr bp_yiaddr; /* 'your' IP address */
52 struct in_addr bp_siaddr; /* server IP address */
53 struct in_addr bp_giaddr; /* gateway IP address */
54 unsigned char bp_chaddr[BP_CHADDR_LEN]; /* client hardware address */
55 char bp_sname[BP_SNAME_LEN]; /* server host name */

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

128
129
130/*
131 * "vendor" data permitted for CMU bootp clients.
132 */
133
134struct cmu_vend {
135 char v_magic[4]; /* magic number */
136 unsigned int32 v_flags; /* flags/opcodes, etc. */
136 u_int32 v_flags; /* flags/opcodes, etc. */
137 struct in_addr v_smask; /* Subnet mask */
138 struct in_addr v_dgate; /* Default gateway */
139 struct in_addr v_dns1, v_dns2; /* Domain name servers */
140 struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */
141 struct in_addr v_ts1, v_ts2; /* Time servers */
142 int32 v_unused[6]; /* currently unused */
143};
144
145
146/* v_flags values */
147#define VF_SMASK 1 /* Subnet mask field contains valid data */
137 struct in_addr v_smask; /* Subnet mask */
138 struct in_addr v_dgate; /* Default gateway */
139 struct in_addr v_dns1, v_dns2; /* Domain name servers */
140 struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */
141 struct in_addr v_ts1, v_ts2; /* Time servers */
142 int32 v_unused[6]; /* currently unused */
143};
144
145
146/* v_flags values */
147#define VF_SMASK 1 /* Subnet mask field contains valid data */