Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 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/zcip.c

    r2725 r3232  
    2424// - link status monitoring (restart on link-up; stop on link-down)
    2525
     26//usage:#define zcip_trivial_usage
     27//usage:       "[OPTIONS] IFACE SCRIPT"
     28//usage:#define zcip_full_usage "\n\n"
     29//usage:       "Manage a ZeroConf IPv4 link-local address\n"
     30//usage:     "\n    -f      Run in foreground"
     31//usage:     "\n    -q      Quit after obtaining address"
     32//usage:     "\n    -r 169.254.x.x  Request this address first"
     33//usage:     "\n    -v      Verbose"
     34//usage:     "\n"
     35//usage:     "\nWith no -q, runs continuously monitoring for ARP conflicts,"
     36//usage:     "\nexits only on I/O errors (link down etc)"
     37
     38#include "libbb.h"
    2639#include <netinet/ether.h>
    27 #include <net/ethernet.h>
    2840#include <net/if.h>
    2941#include <net/if_arp.h>
    30 #include <linux/if_packet.h>
    3142#include <linux/sockios.h>
    3243
    33 #include "libbb.h"
    3444#include <syslog.h>
    3545
     
    8292#define saddr    (G.saddr   )
    8393#define eth_addr (G.eth_addr)
     94#define INIT_G() do { } while (0)
    8495
    8596
     
    214225
    215226    memset(&L, 0, sizeof(L));
     227    INIT_G();
    216228
    217229#define FOREGROUND (opts & 1)
Note: See TracChangeset for help on using the changeset viewer.