aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 220b02126..b6604f5d1 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -30,7 +30,6 @@
30//usage: IF_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]" 30//usage: IF_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]"
31//usage:#define ifconfig_full_usage "\n\n" 31//usage:#define ifconfig_full_usage "\n\n"
32//usage: "Configure a network interface\n" 32//usage: "Configure a network interface\n"
33//usage: "\nOptions:"
34//usage: "\n" 33//usage: "\n"
35//usage: IF_FEATURE_IPV6( 34//usage: IF_FEATURE_IPV6(
36//usage: " [add ADDRESS[/PREFIXLEN]]\n") 35//usage: " [add ADDRESS[/PREFIXLEN]]\n")
@@ -47,18 +46,14 @@
47//usage: " [mem_start NN] [io_addr NN] [irq NN]\n") 46//usage: " [mem_start NN] [io_addr NN] [irq NN]\n")
48//usage: " [up|down] ..." 47//usage: " [up|down] ..."
49 48
49#include "libbb.h"
50#include "inet_common.h"
50#include <net/if.h> 51#include <net/if.h>
51#include <net/if_arp.h> 52#include <net/if_arp.h>
52#include <netinet/in.h> 53#include <netinet/in.h>
53#if defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1 54#ifdef HAVE_NET_ETHERNET_H
54#include <netpacket/packet.h> 55# include <net/ethernet.h>
55#include <net/ethernet.h>
56#else
57#include <sys/types.h>
58#include <netinet/if_ether.h>
59#endif 56#endif
60#include "libbb.h"
61#include "inet_common.h"
62 57
63#if ENABLE_FEATURE_IFCONFIG_SLIP 58#if ENABLE_FEATURE_IFCONFIG_SLIP
64# include <net/if_slip.h> 59# include <net/if_slip.h>