aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/udhcp/d6_dhcpc.c3
-rw-r--r--networking/udhcp/dhcpc.c4
-rw-r--r--networking/udhcp/socket.c2
3 files changed, 2 insertions, 7 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index ef555bc8a..555446602 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -1063,9 +1063,6 @@ static int d6_raw_socket(int ifindex)
1063 log1("attached filter to raw socket fd %d", fd); // log? 1063 log1("attached filter to raw socket fd %d", fd); // log?
1064 } 1064 }
1065#endif 1065#endif
1066
1067 log1s("created raw socket");
1068
1069 return fd; 1066 return fd;
1070} 1067}
1071 1068
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index a30632d86..f441976dd 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1093,8 +1093,6 @@ static int udhcp_raw_socket(int ifindex)
1093 log1s("can't set PACKET_AUXDATA on raw socket"); 1093 log1s("can't set PACKET_AUXDATA on raw socket");
1094 } 1094 }
1095 1095
1096 log1s("created raw socket");
1097
1098 return fd; 1096 return fd;
1099} 1097}
1100 1098
@@ -1701,7 +1699,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1701 } 1699 }
1702 /*xid = packet.xid; - already is */ 1700 /*xid = packet.xid; - already is */
1703 temp_addr.s_addr = requested_ip = packet.yiaddr; 1701 temp_addr.s_addr = requested_ip = packet.yiaddr;
1704 log1("received an offer of %s", inet_ntoa(temp_addr)); 1702 log1("received offer of %s", inet_ntoa(temp_addr));
1705 1703
1706 /* enter requesting state */ 1704 /* enter requesting state */
1707 client_data.state = REQUESTING; 1705 client_data.state = REQUESTING;
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 65a1a8ead..35e10688b 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -82,7 +82,7 @@ int FAST_FUNC udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf)
82 struct sockaddr_in addr; 82 struct sockaddr_in addr;
83 char *colon; 83 char *colon;
84 84
85 log1("opening listen socket on *:%d %s", port, inf); 85 log2("opening listen socket on *:%d %s", port, inf);
86 fd = xsocket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); 86 fd = xsocket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
87 87
88 setsockopt_reuseaddr(fd); 88 setsockopt_reuseaddr(fd);