#include <linux/sockios.h>
-struct arp_packet {
+static struct arp_packet {
struct ether_header hdr;
// FIXME this part is netinet/if_ether.h "struct ether_arp"
struct arphdr arp;
/**
* Print usage information.
*/
-static void __attribute__ ((noreturn))
-usage(const char *msg)
+static void __attribute__((noreturn))
+zcip_usage(const char *msg)
{
fprintf(stderr, "%s: %s\n", prog, msg);
#ifdef NO_BUSYBOX
if (inet_aton(optarg, &ip) == 0
|| (ntohl(ip.s_addr) & IN_CLASSB_NET)
!= LINKLOCAL_ADDR) {
- usage("invalid link address");
+ zcip_usage("invalid link address");
}
continue;
case 'v':
foreground = 1;
continue;
default:
- usage("bad option");
+ zcip_usage("bad option");
}
}
if (optind < argc - 1) {
script = argv[optind++];
}
if (optind != argc || !intf)
- usage("wrong number of arguments");
+ zcip_usage("wrong number of arguments");
openlog(prog, 0, LOG_DAEMON);
// initialize the interface (modprobe, ifup, etc)