2004-12-05 Dan Williams <dcbw@redhat.com>
* Major rework of the DHCP code, taking some cues from pump. We don't write raw Ethernet packets anymore, which simplifies the code quite a bit. The new code should be more robust, not hang in recvfrom() as much, and generally work better. This also means that we need to force HAL/dbus to use a created GMainContext rather than the default context, since having the DHCP renew/rebind thread using its own GMainContext seemed to give dbus a fit. There is also more debugging information printed from the DHCP loop to help with future problems. * Also, if the DHCP server doesn't give us the "routersOnSubnet" option, assume that the default gateway should be the DHCP server. Patch from Matthew Schick <matt oss-institute org> * src/backends/NetworkManagerGentoo.c - Fix compilation error due to missing "ip4_broadcast" git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@336 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -82,11 +82,9 @@ gboolean nm_system_device_set_ip4_address (NMDevice *dev, int ip4_address)
|
||||
else
|
||||
{
|
||||
success = TRUE;
|
||||
fprintf(stderr, "Your IP address = %u.%u.%u.%u\n",
|
||||
((unsigned char *)&ip4_address)[0],
|
||||
((unsigned char *)&ip4_address)[1],
|
||||
((unsigned char *)&ip4_address)[2],
|
||||
((unsigned char *)&ip4_address)[3]);
|
||||
syslog (LOG_INFO, "Your IP address = %u.%u.%u.%u\n",
|
||||
((unsigned char *)&ip4_address)[0], ((unsigned char *)&ip4_address)[1],
|
||||
((unsigned char *)&ip4_address)[2], ((unsigned char *)&ip4_address)[3]);
|
||||
}
|
||||
|
||||
close (sk);
|
||||
|
Reference in New Issue
Block a user