Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/networking/interface.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/networking/interface.c
r2725 r3232 28 28 * - gettext instead of catgets for i18n 29 29 * 10/1998 - Andi Kleen. Use interface list primitives. 30 * 30 * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu 31 31 * (default AF was wrong) 32 32 */ 33 34 #include "libbb.h" 35 #include "inet_common.h" 33 36 #include <net/if.h> 34 37 #include <net/if_arp.h> 35 #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION)38 #ifdef HAVE_NET_ETHERNET_H 36 39 # include <net/ethernet.h> 37 #else 38 # include <linux/if_ether.h> 39 #endif 40 #include "libbb.h" 41 #include "inet_common.h" 40 #endif 42 41 43 42 #if ENABLE_FEATURE_HWIB … … 952 951 sap.sin6_family = AF_INET6; 953 952 printf(" inet6 addr: %s/%d", 954 955 953 INET6_sprint((struct sockaddr *) &sap, 1), 954 plen); 956 955 printf(" Scope:"); 957 956 switch (scope & IPV6_ADDR_SCOPE_MASK) { … … 1021 1020 if (ptr->has_ip) { 1022 1021 printf(" %s addr:%s ", ap->name, 1023 1022 ap->sprint(&ptr->addr, 1)); 1024 1023 if (ptr->flags & IFF_POINTOPOINT) { 1025 1024 printf(" P-t-P:%s ", ap->sprint(&ptr->dstaddr, 1)); … … 1104 1103 1105 1104 printf("RX packets:%llu errors:%lu dropped:%lu overruns:%lu frame:%lu\n", 1106 1107 1108 1105 ptr->stats.rx_packets, ptr->stats.rx_errors, 1106 ptr->stats.rx_dropped, ptr->stats.rx_fifo_errors, 1107 ptr->stats.rx_frame_errors); 1109 1108 if (can_compress) 1110 1109 printf(" compressed:%lu\n", 1111 1110 ptr->stats.rx_compressed); 1112 1111 printf(" "); 1113 1112 printf("TX packets:%llu errors:%lu dropped:%lu overruns:%lu carrier:%lu\n", 1114 1115 1116 1113 ptr->stats.tx_packets, ptr->stats.tx_errors, 1114 ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors, 1115 ptr->stats.tx_carrier_errors); 1117 1116 printf(" collisions:%lu ", ptr->stats.collisions); 1118 1117 if (can_compress) … … 1131 1130 if (ptr->map.irq) 1132 1131 printf("Interrupt:%d ", ptr->map.irq); 1133 if (ptr->map.base_addr >= 0x100) /* Only print devices using it for 1134 I/O maps */ 1132 if (ptr->map.base_addr >= 0x100) /* Only print devices using it for I/O maps */ 1135 1133 printf("Base address:0x%lx ", 1136 1134 (unsigned long) ptr->map.base_addr); 1137 1135 if (ptr->map.mem_start) { 1138 1136 printf("Memory:%lx-%lx ", ptr->map.mem_start, 1139 1137 ptr->map.mem_end); 1140 1138 } 1141 1139 if (ptr->map.dma) … … 1170 1168 #ifdef UNUSED 1171 1169 static int for_all_interfaces(int (*doit) (struct interface *, void *), 1172 1170 void *cookie) 1173 1171 { 1174 1172 struct interface *ife;
Note:
See TracChangeset
for help on using the changeset viewer.