Update of /cvsroot/dhcp-agent/dhcp-agent/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12276
Modified Files:
dhcp-server-control.c
Log Message:
small fix and note about SO_BINDDEVICE
Index: dhcp-server-control.c
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-server-control.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** dhcp-server-control.c 5 Aug 2003 05:01:02 -0000 1.7
--- dhcp-server-control.c 2 Jun 2004 02:06:08 -0000 1.8
***************
*** 69,75 ****
}
if((dhcp_server_control->udp_sock =
! udp_sock_create(dport,
! rawnet_get_ip_addr(dhcp_server_control->rawnet))) < 0) {
FATAL_MESSAGE("unable to open udp socket");
}
--- 69,80 ----
}
+ /* FIXME: on linux we have SO_BINDDEVICE and we need
+ * INADDRY_ANY to get "255.255.255.255" style broadcasts.
+ *
+ * On other systems we may be able to bind to a specific
+ * address and still be able to get such broadcasts. */
+
if((dhcp_server_control->udp_sock =
! udp_sock_create(dport, INADDR_ANY, interface)) < 0) {
FATAL_MESSAGE("unable to open udp socket");
}
|