Changeset View
Changeset View
Standalone View
Standalone View
/usr/src/lib/libstand/bootp.h
Show All 16 Lines | |||||
* and distribution is by permission of Carnegie Mellon and Stanford | * and distribution is by permission of Carnegie Mellon and Stanford | ||||
* University. Carnegie Mellon makes no representations about the | * University. Carnegie Mellon makes no representations about the | ||||
* suitability of this software for any purpose. It is provided "as is" | * suitability of this software for any purpose. It is provided "as is" | ||||
* without express or implied warranty. | * without express or implied warranty. | ||||
* | * | ||||
* $FreeBSD: head/lib/libstand/bootp.h 305125 2016-08-31 13:16:40Z bapt $ | * $FreeBSD: head/lib/libstand/bootp.h 305125 2016-08-31 13:16:40Z bapt $ | ||||
*/ | */ | ||||
#ifndef _BOOTP_H_ | |||||
#define _BOOTP_H_ | |||||
struct bootp { | struct bootp { | ||||
unsigned char bp_op; /* packet opcode type */ | unsigned char bp_op; /* packet opcode type */ | ||||
unsigned char bp_htype; /* hardware addr type */ | unsigned char bp_htype; /* hardware addr type */ | ||||
unsigned char bp_hlen; /* hardware addr length */ | unsigned char bp_hlen; /* hardware addr length */ | ||||
unsigned char bp_hops; /* gateway hops */ | unsigned char bp_hops; /* gateway hops */ | ||||
unsigned int bp_xid; /* transaction ID */ | unsigned int bp_xid; /* transaction ID */ | ||||
unsigned short bp_secs; /* seconds since boot began */ | unsigned short bp_secs; /* seconds since boot began */ | ||||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | struct cmu_vend { | ||||
struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */ | struct in_addr v_ins1, v_ins2; /* IEN-116 name servers */ | ||||
struct in_addr v_ts1, v_ts2; /* Time servers */ | struct in_addr v_ts1, v_ts2; /* Time servers */ | ||||
unsigned char v_unused[25]; /* currently unused */ | unsigned char v_unused[25]; /* currently unused */ | ||||
}; | }; | ||||
/* v_flags values */ | /* v_flags values */ | ||||
#define VF_SMASK 1 /* Subnet mask field contains valid data */ | #define VF_SMASK 1 /* Subnet mask field contains valid data */ | ||||
#ifndef BOOTP | |||||
smh: Is this needed as it looks like its to ensure its only included once by the _BOOTP_H_ should… | |||||
#define BOOTP | |||||
int dhcp_try_rfc1048(u_char *cp, u_int len); | |||||
#endif | |||||
#endif /* _BOOTP_H_ */ |
Is this needed as it looks like its to ensure its only included once by the _BOOTP_H_ should achieve that