Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/networking/udhcp/common.h

    r3232 r3621  
    1010
    1111#include "libbb.h"
     12#include "common_bufsiz.h"
    1213#include <netinet/udp.h>
    1314#include <netinet/ip.h>
     
    150151//#define DHCP_SIP_SERVERS      0x78 /* RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */
    151152//#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 */
    154157//#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */
    155158//#define DHCP_WPAD             0xfc /* MSIE's Web Proxy Autodiscovery Protocol */
     
    255258# define IF_UDHCP_VERBOSE(...) __VA_ARGS__
    256259extern 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)
    258261# if CONFIG_UDHCP_DEBUG >= 2
    259262void 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)
    261264# else
    262265#  define udhcp_dump_packet(...) ((void)0)
     
    264267# endif
    265268# 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)
    267270# else
    268271#  define log3(...) ((void)0)
     
    310313        uint32_t from_ip,
    311314        uint8_t *from_mac,
    312         const char *interface) FAST_FUNC;
     315        const char *interface,
     316        unsigned timeo) FAST_FUNC;
    313317
    314318/* note: ip is a pointer to an IPv6 in network order, possibly misaliged */
Note: See TracChangeset for help on using the changeset viewer.