aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/Config.in8
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/nc.c12
-rw-r--r--networking/ping6.c2
-rw-r--r--networking/telnet.c4
-rw-r--r--networking/udhcp/dhcpc.h2
-rw-r--r--networking/wget.c2
-rw-r--r--networking/zcip.c4
8 files changed, 18 insertions, 18 deletions
diff --git a/networking/Config.in b/networking/Config.in
index 2dff021a8..b78ae37e7 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -22,7 +22,7 @@ config CONFIG_DNSD
22 bool "dnsd" 22 bool "dnsd"
23 default n 23 default n
24 help 24 help
25 Small and static DNS server daemon. 25 Small and static DNS server daemon.
26 26
27config CONFIG_ETHER_WAKE 27config CONFIG_ETHER_WAKE
28 bool "ether-wake" 28 bool "ether-wake"
@@ -132,9 +132,9 @@ config CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
132 default n 132 default n
133 depends on CONFIG_FEATURE_HTTPD_CGI 133 depends on CONFIG_FEATURE_HTTPD_CGI
134 help 134 help
135 This option enables support for running scripts through an 135 This option enables support for running scripts through an
136 interpreter. Turn this on if you want PHP scripts to work 136 interpreter. Turn this on if you want PHP scripts to work
137 properly. You need to supply an addition line in your httpd 137 properly. You need to supply an addition line in your httpd
138 config file: 138 config file:
139 *.php:/path/to/your/php 139 *.php:/path/to/your/php
140 140
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 6429c07e5..fa5bfe1e9 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -708,7 +708,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename)
708 llist_t *iface_list; 708 llist_t *iface_list;
709 for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) { 709 for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) {
710 struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data; 710 struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data;
711 if ((strcmp(tmp->iface, currif->iface) == 0) && 711 if ((strcmp(tmp->iface, currif->iface) == 0) &&
712 (tmp->address_family == currif->address_family)) { 712 (tmp->address_family == currif->address_family)) {
713 bb_error_msg("duplicate interface \"%s\"", tmp->iface); 713 bb_error_msg("duplicate interface \"%s\"", tmp->iface);
714 return NULL; 714 return NULL;
diff --git a/networking/nc.c b/networking/nc.c
index 3f4149e14..f8b3fb2dd 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -1,9 +1,9 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* nc: mini-netcat - built from the ground up for LRP 2/* nc: mini-netcat - built from the ground up for LRP
3 * 3 *
4 * Copyright (C) 1998, 1999 Charles P. Wright 4 * Copyright (C) 1998, 1999 Charles P. Wright
5 * Copyright (C) 1998 Dave Cinege 5 * Copyright (C) 1998 Dave Cinege
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
@@ -25,7 +25,7 @@ int nc_main(int argc, char **argv)
25 25
26 memset(&address, 0, sizeof(address)); 26 memset(&address, 0, sizeof(address));
27 27
28 if (ENABLE_NC_SERVER || ENABLE_NC_EXTRA) { 28 if (ENABLE_NC_SERVER || ENABLE_NC_EXTRA) {
29 while ((opt = getopt(argc, argv, "lp:" USE_NC_EXTRA("i:ew:f:"))) > 0) { 29 while ((opt = getopt(argc, argv, "lp:" USE_NC_EXTRA("i:ew:f:"))) > 0) {
30 if (ENABLE_NC_SERVER && opt=='l') do_listen++; 30 if (ENABLE_NC_SERVER && opt=='l') do_listen++;
31 else if (ENABLE_NC_SERVER && opt=='p') 31 else if (ENABLE_NC_SERVER && opt=='p')
@@ -40,7 +40,7 @@ int nc_main(int argc, char **argv)
40 } 40 }
41 } 41 }
42 42
43 43
44 // For listen or file we need zero arguments, dialout is 2. 44 // For listen or file we need zero arguments, dialout is 2.
45 // For exec we need at least one more argument at the end, more ok 45 // For exec we need at least one more argument at the end, more ok
46 46
@@ -53,7 +53,7 @@ int nc_main(int argc, char **argv)
53 signal(SIGALRM, timeout); 53 signal(SIGALRM, timeout);
54 alarm(wsecs); 54 alarm(wsecs);
55 } 55 }
56 56
57 if (infile) cfd = xopen(infile, O_RDWR); 57 if (infile) cfd = xopen(infile, O_RDWR);
58 else { 58 else {
59 opt = 1; 59 opt = 1;
@@ -132,7 +132,7 @@ repeatyness:
132 } 132 }
133 133
134 // Select loop copying stdin to cfd, and cfd to stdout. 134 // Select loop copying stdin to cfd, and cfd to stdout.
135 135
136 FD_ZERO(&readfds); 136 FD_ZERO(&readfds);
137 FD_SET(cfd, &readfds); 137 FD_SET(cfd, &readfds);
138 FD_SET(STDIN_FILENO, &readfds); 138 FD_SET(STDIN_FILENO, &readfds);
diff --git a/networking/ping6.c b/networking/ping6.c
index 990328a51..6079c40d9 100644
--- a/networking/ping6.c
+++ b/networking/ping6.c
@@ -370,7 +370,7 @@ static void ping(const char *host)
370 pingaddr.sin6_scope_id = if_index; 370 pingaddr.sin6_scope_id = if_index;
371 371
372 printf("PING %s (%s): %d data bytes\n", 372 printf("PING %s (%s): %d data bytes\n",
373 hostent->h_name, 373 hostent->h_name,
374 inet_ntop(AF_INET6, &pingaddr.sin6_addr, 374 inet_ntop(AF_INET6, &pingaddr.sin6_addr,
375 buf, sizeof(buf)), 375 buf, sizeof(buf)),
376 datalen); 376 datalen);
diff --git a/networking/telnet.c b/networking/telnet.c
index 5324d7a20..344fc3270 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -185,9 +185,9 @@ static void handlenetoutput(int len)
185 * I don't agree. 185 * I don't agree.
186 * first - I cannot use programs like sz/rz 186 * first - I cannot use programs like sz/rz
187 * second - the 0x0D is sent as one character and if the next 187 * second - the 0x0D is sent as one character and if the next
188 * char is 0x0A then it's eaten by a server side. 188 * char is 0x0A then it's eaten by a server side.
189 * third - whay doy you have to make 'many write()s'? 189 * third - whay doy you have to make 'many write()s'?
190 * I don't understand. 190 * I don't understand.
191 * So I implemented it. It's realy useful for me. I hope that 191 * So I implemented it. It's realy useful for me. I hope that
192 * others people will find it interesting to. 192 * others people will find it interesting to.
193 */ 193 */
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 42af0a367..3dff11ab0 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -29,7 +29,7 @@ struct client_config_t {
29 uint8_t *hostname; /* Optional hostname to use */ 29 uint8_t *hostname; /* Optional hostname to use */
30 uint8_t *fqdn; /* Optional fully qualified domain name to use */ 30 uint8_t *fqdn; /* Optional fully qualified domain name to use */
31 int ifindex; /* Index number of the interface to use */ 31 int ifindex; /* Index number of the interface to use */
32 int retries; /* Max number of request packets */ 32 int retries; /* Max number of request packets */
33 int timeout; /* Number of seconds to try to get a lease */ 33 int timeout; /* Number of seconds to try to get a lease */
34 uint8_t arp[6]; /* Our arp address */ 34 uint8_t arp[6]; /* Our arp address */
35}; 35};
diff --git a/networking/wget.c b/networking/wget.c
index 181ea9397..1a80972fc 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -483,7 +483,7 @@ read_response:
483 do { 483 do {
484 while (filesize > 0 || !got_clen) { 484 while (filesize > 0 || !got_clen) {
485 unsigned rdsz = sizeof(buf); 485 unsigned rdsz = sizeof(buf);
486 if (filesize < sizeof(buf) && (chunked || got_clen)) 486 if (filesize < sizeof(buf) && (chunked || got_clen))
487 rdsz = filesize; 487 rdsz = filesize;
488 n = safe_fread(buf, 1, rdsz, dfp); 488 n = safe_fread(buf, 1, rdsz, dfp);
489 if (n <= 0) 489 if (n <= 0)
diff --git a/networking/zcip.c b/networking/zcip.c
index 5d2a5f786..c6b0d2d80 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -314,7 +314,7 @@ int zcip_main(int argc, char *argv[])
314 tv1.tv_sec++; 314 tv1.tv_sec++;
315 } 315 }
316 tv1.tv_sec += timeout / 1000; 316 tv1.tv_sec += timeout / 1000;
317 317
318 VDBG("...wait %ld %s nprobes=%d, nclaims=%d\n", 318 VDBG("...wait %ld %s nprobes=%d, nclaims=%d\n",
319 timeout, intf, nprobes, nclaims); 319 timeout, intf, nprobes, nclaims);
320 switch (poll(fds, 1, timeout)) { 320 switch (poll(fds, 1, timeout)) {
@@ -479,7 +479,7 @@ int zcip_main(int argc, char *argv[])
479 target_ip_conflict = 1; 479 target_ip_conflict = 1;
480 } 480 }
481 481
482 VDBG("state = %d, source ip conflict = %d, target ip conflict = %d\n", 482 VDBG("state = %d, source ip conflict = %d, target ip conflict = %d\n",
483 state, source_ip_conflict, target_ip_conflict); 483 state, source_ip_conflict, target_ip_conflict);
484 switch (state) { 484 switch (state) {
485 case PROBE: 485 case PROBE: