Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/networking/interface.c

    r2725 r3232  
    2828 *                     - gettext instead of catgets for i18n
    2929 *          10/1998  - Andi Kleen. Use interface list primitives.
    30  *      20001008 - Bernd Eckenfels, Patch from RH for setting mtu
     30 *          20001008 - Bernd Eckenfels, Patch from RH for setting mtu
    3131 *          (default AF was wrong)
    3232 */
     33
     34#include "libbb.h"
     35#include "inet_common.h"
    3336#include <net/if.h>
    3437#include <net/if_arp.h>
    35 #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION)
     38#ifdef HAVE_NET_ETHERNET_H
    3639# 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
    4241
    4342#if ENABLE_FEATURE_HWIB
     
    952951            sap.sin6_family = AF_INET6;
    953952            printf("          inet6 addr: %s/%d",
    954                    INET6_sprint((struct sockaddr *) &sap, 1),
    955                    plen);
     953                INET6_sprint((struct sockaddr *) &sap, 1),
     954                plen);
    956955            printf(" Scope:");
    957956            switch (scope & IPV6_ADDR_SCOPE_MASK) {
     
    10211020    if (ptr->has_ip) {
    10221021        printf("          %s addr:%s ", ap->name,
    1023                ap->sprint(&ptr->addr, 1));
     1022            ap->sprint(&ptr->addr, 1));
    10241023        if (ptr->flags & IFF_POINTOPOINT) {
    10251024            printf(" P-t-P:%s ", ap->sprint(&ptr->dstaddr, 1));
     
    11041103
    11051104        printf("RX packets:%llu errors:%lu dropped:%lu overruns:%lu frame:%lu\n",
    1106                ptr->stats.rx_packets, ptr->stats.rx_errors,
    1107                ptr->stats.rx_dropped, ptr->stats.rx_fifo_errors,
    1108                ptr->stats.rx_frame_errors);
     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);
    11091108        if (can_compress)
    11101109            printf("             compressed:%lu\n",
    1111                    ptr->stats.rx_compressed);
     1110                ptr->stats.rx_compressed);
    11121111        printf("          ");
    11131112        printf("TX packets:%llu errors:%lu dropped:%lu overruns:%lu carrier:%lu\n",
    1114                ptr->stats.tx_packets, ptr->stats.tx_errors,
    1115                ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors,
    1116                ptr->stats.tx_carrier_errors);
     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);
    11171116        printf("          collisions:%lu ", ptr->stats.collisions);
    11181117        if (can_compress)
     
    11311130        if (ptr->map.irq)
    11321131            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 */
    11351133            printf("Base address:0x%lx ",
    1136                    (unsigned long) ptr->map.base_addr);
     1134                (unsigned long) ptr->map.base_addr);
    11371135        if (ptr->map.mem_start) {
    11381136            printf("Memory:%lx-%lx ", ptr->map.mem_start,
    1139                    ptr->map.mem_end);
     1137                ptr->map.mem_end);
    11401138        }
    11411139        if (ptr->map.dma)
     
    11701168#ifdef UNUSED
    11711169static int for_all_interfaces(int (*doit) (struct interface *, void *),
    1172                               void *cookie)
     1170                            void *cookie)
    11731171{
    11741172    struct interface *ife;
Note: See TracChangeset for help on using the changeset viewer.