21 #define OPTION_LIST 0x80
29 extern struct dhcp_option options[];
30 extern int option_lengths[];
32 unsigned char *get_option(struct dhcpMessage *packet, int code);
33 int end_option(unsigned char *optionptr);
34 int add_option_string(unsigned char *optionptr, unsigned char *string);
35 int add_simple_option(unsigned char *optionptr, unsigned char code, u_int32_t data);
36 struct option_set *find_option(struct option_set *opt_list, char code);
37 void attach_option(struct option_set **opt_list, struct dhcp_option *option, char *buffer, int length);
40 extern char session_path[];
43 #define _PATH_RESOLV "/var/fyi/sys/dns"
44 #define _PATH_GW "/var/fyi/sys/gateway"
45 #define _PATH_SYS_DIR "/var/fyi/sys"
47 #define _PATH_WAN_DIR "/proc/var/fyi/wan"
48 #define _PATH_MSG "daemonstatus"
49 #define _PATH_IP "ipaddress"
50 #define _PATH_MASK "subnetmask"
51 #define _PATH_PID "pid"