Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/networking/udhcp/common.h
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/networking/udhcp/common.h
r3232 r3621 10 10 11 11 #include "libbb.h" 12 #include "common_bufsiz.h" 12 13 #include <netinet/udp.h> 13 14 #include <netinet/ip.h> … … 150 151 //#define DHCP_SIP_SERVERS 0x78 /* RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */ 151 152 //#define DHCP_STATIC_ROUTES 0x79 /* RFC 3442. (mask,ip,router) tuples */ 152 #define DHCP_VLAN_ID 0x84 /* 802.1P VLAN ID */ 153 #define DHCP_VLAN_PRIORITY 0x85 /* 802.1Q VLAN priority */ 153 //#define DHCP_VLAN_ID 0x84 /* 802.1P VLAN ID */ 154 //#define DHCP_VLAN_PRIORITY 0x85 /* 802.1Q VLAN priority */ 155 //#define DHCP_PXE_CONF_FILE 0xd1 /* RFC 5071 Configuration File */ 156 //#define DHCP_PXE_PATH_PREFIX 0xd2 /* RFC 5071 Configuration File */ 154 157 //#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */ 155 158 //#define DHCP_WPAD 0xfc /* MSIE's Web Proxy Autodiscovery Protocol */ … … 255 258 # define IF_UDHCP_VERBOSE(...) __VA_ARGS__ 256 259 extern unsigned dhcp_verbose; 257 # define log1(...) do { if (dhcp_verbose >= 1) bb_ info_msg(__VA_ARGS__); } while (0)260 # define log1(...) do { if (dhcp_verbose >= 1) bb_error_msg(__VA_ARGS__); } while (0) 258 261 # if CONFIG_UDHCP_DEBUG >= 2 259 262 void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC; 260 # define log2(...) do { if (dhcp_verbose >= 2) bb_ info_msg(__VA_ARGS__); } while (0)263 # define log2(...) do { if (dhcp_verbose >= 2) bb_error_msg(__VA_ARGS__); } while (0) 261 264 # else 262 265 # define udhcp_dump_packet(...) ((void)0) … … 264 267 # endif 265 268 # if CONFIG_UDHCP_DEBUG >= 3 266 # define log3(...) do { if (dhcp_verbose >= 3) bb_ info_msg(__VA_ARGS__); } while (0)269 # define log3(...) do { if (dhcp_verbose >= 3) bb_error_msg(__VA_ARGS__); } while (0) 267 270 # else 268 271 # define log3(...) ((void)0) … … 310 313 uint32_t from_ip, 311 314 uint8_t *from_mac, 312 const char *interface) FAST_FUNC; 315 const char *interface, 316 unsigned timeo) FAST_FUNC; 313 317 314 318 /* note: ip is a pointer to an IPv6 in network order, possibly misaliged */
Note:
See TracChangeset
for help on using the changeset viewer.