/* where to find the DHCP server configuration file */
#define DHCPD_CONF_FILE "/etc/udhcpd.conf"
+// BRCM
+/* where to find the DHCP vendor IDs configuration file */
+#define DHCPD_VENDORID_CONF_FILE "/var/udhcpd_vendorid.conf"
+
/*****************************************************************/
/* Do not modify below here unless you know what you are doing!! */
/*****************************************************************/
#define OPT_CODE 0
#define OPT_LEN 1
+// BRCM
+#define MAX_VENDOR_IDS 80
+
struct option_set {
unsigned char *data;
struct option_set *next;
u_int32_t siaddr; /* next server bootp option */
char *sname; /* bootp server name */
char *boot_file; /* bootp boot file option */
+ // BRCM vendirid and decline_file
+ char *vendorid;
+ char *decline_file;
};
+// BRCM
+struct vendor_id_config_t {
+ char vendorid[64];
+};
+
extern struct server_config_t server_config;
extern struct dhcpOfferedAddr *leases;
+// BRCM
+extern struct dhcpOfferedAddr *declines;
+extern struct vendor_id_config_t vendor_id_config[MAX_VENDOR_IDS];
#endif