www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / opensource / udhcp / dhcpd.h
index a701e40..e26a887 100755 (executable)
 /* 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!! */
 /*****************************************************************/
@@ -92,6 +96,9 @@
 #define OPT_CODE 0
 #define OPT_LEN 1
 
+// BRCM
+#define MAX_VENDOR_IDS         80
+
 struct option_set {
        unsigned char *data;
        struct option_set *next;
@@ -122,10 +129,21 @@ struct server_config_t {
        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