Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

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

    r2725 r3232  
    1515PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
    1616
    17 extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */
     17extern const uint8_t MAC_BCAST_ADDR[6] ALIGN2; /* six all-ones */
    1818
    1919
     
    8181    OPTION_IP_PAIR,
    8282    OPTION_STRING,
     83    /* Opts of STRING_HOST type will be sanitized before they are passed
     84     * to udhcpc script's environment: */
     85    OPTION_STRING_HOST,
    8386//  OPTION_BOOLEAN,
    8487    OPTION_U8,
     
    8992    OPTION_BIN,
    9093    OPTION_STATIC_ROUTES,
     94    OPTION_6RD,
    9195#if ENABLE_FEATURE_UDHCP_RFC3397
    9296    OPTION_DNS_STRING,  /* RFC1035 compressed domain name list */
     
    104108 * http://www.iana.org/assignments/bootp-dhcp-parameters/
    105109 * Commented out options are handled by common option machinery,
    106  * uncommented ones have spacial cases (grep for them to see).
     110 * uncommented ones have special cases (grep for them to see).
    107111 */
    108112#define DHCP_PADDING            0x00
     
    146150//#define DHCP_SIP_SERVERS      0x78 /* RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */
    147151//#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 */
    148154//#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */
    149155//#define DHCP_WPAD             0xfc /* MSIE's Web Proxy Autodiscovery Protocol */
     
    182188
    183189extern const struct dhcp_optflag dhcp_optflags[];
    184 extern const char dhcp_option_strings[];
    185 extern const uint8_t dhcp_option_lengths[];
     190extern const char dhcp_option_strings[] ALIGN1;
     191extern const uint8_t dhcp_option_lengths[] ALIGN1;
    186192
    187193unsigned FAST_FUNC udhcp_option_idx(const char *name);
     
    247253
    248254#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1
     255# define IF_UDHCP_VERBOSE(...) __VA_ARGS__
    249256extern unsigned dhcp_verbose;
    250257# define log1(...) do { if (dhcp_verbose >= 1) bb_info_msg(__VA_ARGS__); } while (0)
     
    262269# endif
    263270#else
     271# define IF_UDHCP_VERBOSE(...)
    264272# define udhcp_dump_packet(...) ((void)0)
    265273# define log1(...) ((void)0)
     
    275283/* 2nd param is "struct option_set**" */
    276284int FAST_FUNC udhcp_str2optset(const char *str, void *arg);
    277 
    278 uint16_t udhcp_checksum(void *addr, int count) FAST_FUNC;
    279285
    280286void udhcp_init_header(struct dhcp_packet *packet, char type) FAST_FUNC;
     
    306312        const char *interface) FAST_FUNC;
    307313
     314/* note: ip is a pointer to an IPv6 in network order, possibly misaliged */
     315int sprint_nip6(char *dest, /*const char *pre,*/ const uint8_t *ip) FAST_FUNC;
     316
    308317POP_SAVED_FUNCTION_VISIBILITY
    309318
Note: See TracChangeset for help on using the changeset viewer.