Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/networking/zcip.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/zcip.c
r2725 r3232 24 24 // - link status monitoring (restart on link-up; stop on link-down) 25 25 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" 26 39 #include <netinet/ether.h> 27 #include <net/ethernet.h>28 40 #include <net/if.h> 29 41 #include <net/if_arp.h> 30 #include <linux/if_packet.h>31 42 #include <linux/sockios.h> 32 43 33 #include "libbb.h"34 44 #include <syslog.h> 35 45 … … 82 92 #define saddr (G.saddr ) 83 93 #define eth_addr (G.eth_addr) 94 #define INIT_G() do { } while (0) 84 95 85 96 … … 214 225 215 226 memset(&L, 0, sizeof(L)); 227 INIT_G(); 216 228 217 229 #define FOREGROUND (opts & 1)
Note:
See TracChangeset
for help on using the changeset viewer.