diff options
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 4 | ||||
-rw-r--r-- | networking/udhcp/dhcpc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index ebf793438..66bc021e2 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -877,10 +877,10 @@ static int d6_raw_socket(int ifindex) | |||
877 | }; | 877 | }; |
878 | #endif | 878 | #endif |
879 | 879 | ||
880 | log1("opening raw socket on ifindex %d", ifindex); //log2? | 880 | log2("opening raw socket on ifindex %d", ifindex); |
881 | 881 | ||
882 | fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6)); | 882 | fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6)); |
883 | log1("got raw socket fd %d", fd); //log2? | 883 | log2("got raw socket fd %d", fd); |
884 | 884 | ||
885 | sock.sll_family = AF_PACKET; | 885 | sock.sll_family = AF_PACKET; |
886 | sock.sll_protocol = htons(ETH_P_IPV6); | 886 | sock.sll_protocol = htons(ETH_P_IPV6); |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 1a66c610e..932a956af 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1001,14 +1001,14 @@ static int udhcp_raw_socket(int ifindex) | |||
1001 | int fd; | 1001 | int fd; |
1002 | struct sockaddr_ll sock; | 1002 | struct sockaddr_ll sock; |
1003 | 1003 | ||
1004 | log1("opening raw socket on ifindex %d", ifindex); //log2? | 1004 | log2("opening raw socket on ifindex %d", ifindex); |
1005 | 1005 | ||
1006 | fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); | 1006 | fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); |
1007 | /* ^^^^^ | 1007 | /* ^^^^^ |
1008 | * SOCK_DGRAM: remove link-layer headers on input (SOCK_RAW keeps them) | 1008 | * SOCK_DGRAM: remove link-layer headers on input (SOCK_RAW keeps them) |
1009 | * ETH_P_IP: want to receive only packets with IPv4 eth type | 1009 | * ETH_P_IP: want to receive only packets with IPv4 eth type |
1010 | */ | 1010 | */ |
1011 | log1("got raw socket fd"); //log2? | 1011 | log2("got raw socket fd"); |
1012 | 1012 | ||
1013 | sock.sll_family = AF_PACKET; | 1013 | sock.sll_family = AF_PACKET; |
1014 | sock.sll_protocol = htons(ETH_P_IP); | 1014 | sock.sll_protocol = htons(ETH_P_IP); |