2007-11-15 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c - (nm_ethernet_address_is_valid): unbreak previous fix git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3090 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-11-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerUtils.c
|
||||
- (nm_ethernet_address_is_valid): unbreak previous fix
|
||||
|
||||
2007-11-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/supplicant-manager/nm-supplicant-config.c
|
||||
|
@@ -213,16 +213,16 @@ nm_ethernet_address_is_valid (const struct ether_addr *test_addr)
|
||||
g_return_val_if_fail (test_addr != NULL, FALSE);
|
||||
|
||||
/* Compare the AP address the card has with invalid ethernet MAC addresses. */
|
||||
if (memcmp (test_addr->ether_addr_octet, &invalid_addr1, ETH_ALEN))
|
||||
if (!memcmp (test_addr->ether_addr_octet, &invalid_addr1, ETH_ALEN))
|
||||
return FALSE;
|
||||
|
||||
if (memcmp (test_addr->ether_addr_octet, &invalid_addr2, ETH_ALEN))
|
||||
if (!memcmp (test_addr->ether_addr_octet, &invalid_addr2, ETH_ALEN))
|
||||
return FALSE;
|
||||
|
||||
if (memcmp (test_addr->ether_addr_octet, &invalid_addr3, ETH_ALEN))
|
||||
if (!memcmp (test_addr->ether_addr_octet, &invalid_addr3, ETH_ALEN))
|
||||
return FALSE;
|
||||
|
||||
if (memcmp (test_addr->ether_addr_octet, &invalid_addr4, ETH_ALEN))
|
||||
if (!memcmp (test_addr->ether_addr_octet, &invalid_addr4, ETH_ALEN))
|
||||
return FALSE;
|
||||
|
||||
if (test_addr->ether_addr_octet[0] & 1) /* Multicast addresses */
|
||||
|
Reference in New Issue
Block a user