aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-09-18 16:28:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-09-18 16:28:43 +0200
commit0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5 (patch)
treecfe1328d742da3f0572ac8b2f06aa95259862ac5 /networking
parentb63afead4411c5832d427ed149683c85cc81a4c9 (diff)
downloadbusybox-w32-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.tar.gz
busybox-w32-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.tar.bz2
busybox-w32-0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5.zip
regularize format of source file headers, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/hostname.c1
-rw-r--r--networking/ifupdown.c1
-rw-r--r--networking/nameif.c1
-rw-r--r--networking/nbd-client.c16
-rw-r--r--networking/ping.c43
-rw-r--r--networking/udhcp/d6_dhcpc.c1
-rw-r--r--networking/vconfig.c5
-rw-r--r--networking/wget.c1
-rw-r--r--networking/whois.c1
9 files changed, 31 insertions, 39 deletions
diff --git a/networking/hostname.c b/networking/hostname.c
index d87f6562f..8e3238d99 100644
--- a/networking/hostname.c
+++ b/networking/hostname.c
@@ -9,7 +9,6 @@
9 * 9 *
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12
13//config:config HOSTNAME 12//config:config HOSTNAME
14//config: bool "hostname (5.6 kb)" 13//config: bool "hostname (5.6 kb)"
15//config: default y 14//config: default y
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index c2cfe82ec..5521e8a5a 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -16,7 +16,6 @@
16 * 16 *
17 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 17 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
18 */ 18 */
19
20//config:config IFUP 19//config:config IFUP
21//config: bool "ifup (17 kb)" 20//config: bool "ifup (17 kb)"
22//config: default y 21//config: default y
diff --git a/networking/nameif.c b/networking/nameif.c
index 1f2695495..91d50536a 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -9,7 +9,6 @@
9 * 9 *
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12
13//config:config NAMEIF 12//config:config NAMEIF
14//config: bool "nameif (6.6 kb)" 13//config: bool "nameif (6.6 kb)"
15//config: default y 14//config: default y
diff --git a/networking/nbd-client.c b/networking/nbd-client.c
index cf1857231..bedb01a1c 100644
--- a/networking/nbd-client.c
+++ b/networking/nbd-client.c
@@ -3,20 +3,20 @@
3 * 3 *
4 * Licensed under GPLv2, see file LICENSE in this source tree. 4 * Licensed under GPLv2, see file LICENSE in this source tree.
5 */ 5 */
6#include "libbb.h"
7#include <netinet/tcp.h>
8#include <linux/fs.h>
9
10//applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient))
11
12//kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o
13
14//config:config NBDCLIENT 6//config:config NBDCLIENT
15//config: bool "nbd-client (4.6 kb)" 7//config: bool "nbd-client (4.6 kb)"
16//config: default y 8//config: default y
17//config: help 9//config: help
18//config: Network block device client 10//config: Network block device client
19 11
12//applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient))
13
14//kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o
15
16#include "libbb.h"
17#include <netinet/tcp.h>
18#include <linux/fs.h>
19
20#define NBD_SET_SOCK _IO(0xab, 0) 20#define NBD_SET_SOCK _IO(0xab, 0)
21#define NBD_SET_BLKSIZE _IO(0xab, 1) 21#define NBD_SET_BLKSIZE _IO(0xab, 1)
22#define NBD_SET_SIZE _IO(0xab, 2) 22#define NBD_SET_SIZE _IO(0xab, 2)
diff --git a/networking/ping.c b/networking/ping.c
index 7460e4414..774f8f3e0 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -24,28 +24,6 @@
24 * This version is an adaptation of ping.c from busybox. 24 * This version is an adaptation of ping.c from busybox.
25 * The code was modified by Bart Visscher <magick@linux-fan.com> 25 * The code was modified by Bart Visscher <magick@linux-fan.com>
26 */ 26 */
27
28#include <net/if.h>
29#include <netinet/ip_icmp.h>
30#include "libbb.h"
31#include "common_bufsiz.h"
32
33#ifdef __BIONIC__
34/* should be in netinet/ip_icmp.h */
35# define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
36# define ICMP_SOURCE_QUENCH 4 /* Source Quench */
37# define ICMP_REDIRECT 5 /* Redirect (change route) */
38# define ICMP_ECHO 8 /* Echo Request */
39# define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
40# define ICMP_PARAMETERPROB 12 /* Parameter Problem */
41# define ICMP_TIMESTAMP 13 /* Timestamp Request */
42# define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
43# define ICMP_INFO_REQUEST 15 /* Information Request */
44# define ICMP_INFO_REPLY 16 /* Information Reply */
45# define ICMP_ADDRESS 17 /* Address Mask Request */
46# define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
47#endif
48
49//config:config PING 27//config:config PING
50//config: bool "ping (9.5 kb)" 28//config: bool "ping (9.5 kb)"
51//config: default y 29//config: default y
@@ -136,6 +114,27 @@
136//usage: "1 packets transmitted, 1 packets received, 0% packet loss\n" 114//usage: "1 packets transmitted, 1 packets received, 0% packet loss\n"
137//usage: "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" 115//usage: "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
138 116
117#include <net/if.h>
118#include <netinet/ip_icmp.h>
119#include "libbb.h"
120#include "common_bufsiz.h"
121
122#ifdef __BIONIC__
123/* should be in netinet/ip_icmp.h */
124# define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
125# define ICMP_SOURCE_QUENCH 4 /* Source Quench */
126# define ICMP_REDIRECT 5 /* Redirect (change route) */
127# define ICMP_ECHO 8 /* Echo Request */
128# define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
129# define ICMP_PARAMETERPROB 12 /* Parameter Problem */
130# define ICMP_TIMESTAMP 13 /* Timestamp Request */
131# define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
132# define ICMP_INFO_REQUEST 15 /* Information Request */
133# define ICMP_INFO_REPLY 16 /* Information Reply */
134# define ICMP_ADDRESS 17 /* Address Mask Request */
135# define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
136#endif
137
139#if ENABLE_PING6 138#if ENABLE_PING6
140# include <netinet/icmp6.h> 139# include <netinet/icmp6.h>
141/* I see RENUMBERED constants in bits/in.h - !!? 140/* I see RENUMBERED constants in bits/in.h - !!?
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 849ca1388..714555fa8 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -8,7 +8,6 @@
8 * 8 *
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11
12//config:config UDHCPC6 11//config:config UDHCPC6
13//config: bool "udhcpc6" 12//config: bool "udhcpc6"
14//config: default n # not yet ready 13//config: default n # not yet ready
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 62a483865..8548c8c3b 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -6,9 +6,6 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9
10/* BB_AUDIT SUSv3 N/A */
11
12//config:config VCONFIG 9//config:config VCONFIG
13//config: bool "vconfig (2.5 kb)" 10//config: bool "vconfig (2.5 kb)"
14//config: default y 11//config: default y
@@ -34,6 +31,8 @@
34#include "libbb.h" 31#include "libbb.h"
35#include <net/if.h> 32#include <net/if.h>
36 33
34/* BB_AUDIT SUSv3 N/A */
35
37/* Stuff from linux/if_vlan.h, kernel version 2.4.23 */ 36/* Stuff from linux/if_vlan.h, kernel version 2.4.23 */
38enum vlan_ioctl_cmds { 37enum vlan_ioctl_cmds {
39 ADD_VLAN_CMD, 38 ADD_VLAN_CMD,
diff --git a/networking/wget.c b/networking/wget.c
index e1b40d3fd..d1d85230c 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -8,7 +8,6 @@
8 * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org> 8 * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org>
9 * Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2. 9 * Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2.
10 */ 10 */
11
12//config:config WGET 11//config:config WGET
13//config: bool "wget (35 kb)" 12//config: bool "wget (35 kb)"
14//config: default y 13//config: default y
diff --git a/networking/whois.c b/networking/whois.c
index fd1cdf43e..f0ec86301 100644
--- a/networking/whois.c
+++ b/networking/whois.c
@@ -9,7 +9,6 @@
9 * Add ipv6 support 9 * Add ipv6 support
10 * Add proxy support 10 * Add proxy support
11 */ 11 */
12
13//config:config WHOIS 12//config:config WHOIS
14//config: bool "whois (6.6 kb)" 13//config: bool "whois (6.6 kb)"
15//config: default y 14//config: default y