aboutsummaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:24:37 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:24:37 +0000
commit67f641e75b685abe1588b634b409c1ee2ff68c22 (patch)
tree74b3e38f1b7caef23bbf06a92b6e5d05530d50a6 /networking/dnsd.c
parent2c99851181a652358aa3ca58ef38c57e46ae02e4 (diff)
downloadbusybox-w32-67f641e75b685abe1588b634b409c1ee2ff68c22.tar.gz
busybox-w32-67f641e75b685abe1588b634b409c1ee2ff68c22.tar.bz2
busybox-w32-67f641e75b685abe1588b634b409c1ee2ff68c22.zip
- patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index d78ea04c0..b9d022170 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -216,9 +216,8 @@ listen_socket(char *iface_addr, int listen_port)
216 a.sin_family = AF_INET; 216 a.sin_family = AF_INET;
217 if (!inet_aton(iface_addr, &a.sin_addr)) 217 if (!inet_aton(iface_addr, &a.sin_addr))
218 bb_perror_msg_and_die("bad iface address"); 218 bb_perror_msg_and_die("bad iface address");
219 if (bind(s, (struct sockaddr *)&a, sizeof(a)) < 0) 219 bb_xbind(s, (struct sockaddr *)&a, sizeof(a));
220 bb_perror_msg_and_die("bind() failed"); 220 listen(s, 50); /* bb_xlisten? */
221 listen(s, 50);
222 sprintf(msg, "accepting UDP packets on addr:port %s:%d\n", 221 sprintf(msg, "accepting UDP packets on addr:port %s:%d\n",
223 iface_addr, (int)listen_port); 222 iface_addr, (int)listen_port);
224 log_message(LOG_FILE, msg); 223 log_message(LOG_FILE, msg);