"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dhcp.h" between
dhcpcd-7.1.0.tar.xz and dhcpcd-7.1.1.tar.xz

About: dhcpcd is a RFC2131 compliant DHCP (Dynamic Host Configuration Protocol) client.

dhcp.h  (dhcpcd-7.1.0.tar.xz):dhcp.h  (dhcpcd-7.1.1.tar.xz)
skipping to change at line 231 skipping to change at line 231
char leasefile[sizeof(LEASEFILE) + IF_NAMESIZE + (IF_SSIDLEN * 4)]; char leasefile[sizeof(LEASEFILE) + IF_NAMESIZE + (IF_SSIDLEN * 4)];
struct timespec started; struct timespec started;
unsigned char *clientid; unsigned char *clientid;
struct authstate auth; struct authstate auth;
#ifdef ARPING #ifdef ARPING
ssize_t arping_index; ssize_t arping_index;
#endif #endif
}; };
#ifdef INET
#define D_STATE(ifp) \ #define D_STATE(ifp) \
((struct dhcp_state *)(ifp)->if_data[IF_DATA_DHCP]) ((struct dhcp_state *)(ifp)->if_data[IF_DATA_DHCP])
#define D_CSTATE(ifp) \ #define D_CSTATE(ifp) \
((const struct dhcp_state *)(ifp)->if_data[IF_DATA_DHCP]) ((const struct dhcp_state *)(ifp)->if_data[IF_DATA_DHCP])
#define D_STATE_RUNNING(ifp) \ #define D_STATE_RUNNING(ifp) \
(D_CSTATE((ifp)) && D_CSTATE((ifp))->new && D_CSTATE((ifp))->reason) (D_CSTATE((ifp)) && D_CSTATE((ifp))->new && D_CSTATE((ifp))->reason)
#define IS_DHCP(b) ((b)->vend[0] == 0x63 && \ #define IS_DHCP(b) ((b)->vend[0] == 0x63 && \
(b)->vend[1] == 0x82 && \ (b)->vend[1] == 0x82 && \
(b)->vend[2] == 0x53 && \ (b)->vend[2] == 0x53 && \
(b)->vend[3] == 0x63) (b)->vend[3] == 0x63)
#include "dhcpcd.h" #include "dhcpcd.h"
#include "if-options.h" #include "if-options.h"
#ifdef INET
char *decode_rfc3361(const uint8_t *, size_t); char *decode_rfc3361(const uint8_t *, size_t);
ssize_t decode_rfc3442(char *, size_t, const uint8_t *p, size_t); ssize_t decode_rfc3442(char *, size_t, const uint8_t *p, size_t);
void dhcp_printoptions(const struct dhcpcd_ctx *, void dhcp_printoptions(const struct dhcpcd_ctx *,
const struct dhcp_opt *, size_t); const struct dhcp_opt *, size_t);
uint16_t dhcp_get_mtu(const struct interface *); uint16_t dhcp_get_mtu(const struct interface *);
int dhcp_get_routes(struct rt_head *, struct interface *); int dhcp_get_routes(struct rt_head *, struct interface *);
ssize_t dhcp_env(char **, const char *, const struct bootp *, size_t, ssize_t dhcp_env(char **, const char *, const struct bootp *, size_t,
const struct interface *); const struct interface *);
skipping to change at line 269 skipping to change at line 269
void dhcp_start(struct interface *); void dhcp_start(struct interface *);
void dhcp_abort(struct interface *); void dhcp_abort(struct interface *);
void dhcp_discover(void *); void dhcp_discover(void *);
void dhcp_inform(struct interface *); void dhcp_inform(struct interface *);
void dhcp_renew(struct interface *); void dhcp_renew(struct interface *);
void dhcp_bind(struct interface *); void dhcp_bind(struct interface *);
void dhcp_reboot_newopts(struct interface *, unsigned long long); void dhcp_reboot_newopts(struct interface *, unsigned long long);
void dhcp_close(struct interface *); void dhcp_close(struct interface *);
void dhcp_free(struct interface *); void dhcp_free(struct interface *);
int dhcp_dump(struct interface *); int dhcp_dump(struct interface *);
#else #endif /* INET */
#define dhcp_start(a) {}
#define dhcp_abort(a) {}
#define dhcp_renew(a) {}
#define dhcp_reboot(a, b) (b = b)
#define dhcp_reboot_newopts(a, b) (b = b)
#define dhcp_close(a) {}
#define dhcp_free(a) {}
#define dhcp_dump(a) (-1)
#endif
#endif #endif /* DHCP_H */
 End of changes. 4 change blocks. 
11 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)