Make dhcp_socket_t structure fall in line with listen_socket_t
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Apr 2010 11:47:35 +0000 (13:47 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 29 Apr 2010 08:19:21 +0000 (10:19 +0200)
src/modules/frs_dhcp/frs_dhcp.c

index df06bc0..4a3127c 100644 (file)
@@ -30,7 +30,7 @@
 #ifdef WITH_DHCP
 
 /*
- *     Same layout, etc. as listen_socket_t.
+ *     Same contents as listen_socket_t.
  */
 typedef struct dhcp_socket_t {
        /*
@@ -38,9 +38,12 @@ typedef struct dhcp_socket_t {
         */
        fr_ipaddr_t     ipaddr;
        int             port;
-#ifdef SO_BINDTODEVICE
-       const char      *interface;
-#endif
+       const char              *interface;
+       RADCLIENT_LIST  *clients;
+
+       /*
+        *      DHCP-specific additions.
+        */  
        int             suppress_responses;
        RADCLIENT       dhcp_client;
 } dhcp_socket_t;