2004-11-15 Dan Williams <dcbw@redhat.com>
Major rework of link detection code. We now use DHCP as part of the link detection which proves to be much more robust, and also supports Open System authentication for wireless networks. We no longer use external DHCP client programs. Instead, we use our own DHCP client, based on substantially reworked bits of 'dhcpcd' which was written by: Yoichi Hariguchi <yoichi@fore.com> Sergei Viznyuk <sv@phystech.com> http://www.phystech.com/download/ It resides in the "dhcpcd" directory and was refactored into a general purpose DHCP client library by me. Also misc fixes (CPPFLAGS->AM_CPPFLAGS, move some stuff around), move src/backends/NetworkManagerSystem.h -> src/NetworkManagerSystem.h git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@314 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -104,32 +104,6 @@ int nm_null_safe_strcmp (const char *s1, const char *s2)
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* nm_get_network_control_socket
|
||||
*
|
||||
* Get a control socket for network operations.
|
||||
*
|
||||
*/
|
||||
int nm_get_network_control_socket (void)
|
||||
{
|
||||
int fd;
|
||||
|
||||
/* Try to grab a control socket */
|
||||
fd = socket(PF_INET, SOCK_DGRAM, 0);
|
||||
if (fd >= 0)
|
||||
return (fd);
|
||||
fd = socket(PF_PACKET, SOCK_DGRAM, 0);
|
||||
if (fd >= 0)
|
||||
return (fd);
|
||||
fd = socket(PF_INET6, SOCK_DGRAM, 0);
|
||||
if (fd >= 0)
|
||||
return (fd);
|
||||
|
||||
syslog (LOG_ERR, "nm_get_network_control_socket() could not get network control socket.");
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_ethernet_address_is_valid
|
||||
*
|
||||
|
Reference in New Issue
Block a user