| 733 | } |
| 734 | |
| 735 | static void |
| 736 | usage(void) |
| 737 | { |
| 738 | fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n", |
| 739 | #ifndef FSTACK |
| 740 | "usage: arp [-n] [-i interface] hostname", |
| 741 | " arp [-n] [-i interface] -a", |
| 742 | " arp -d hostname [pub]", |
| 743 | " arp -d [-i interface] -a", |
| 744 | " arp -s hostname ether_addr [temp] [reject | blackhole] [pub [only]]", |
| 745 | " arp -S hostname ether_addr [temp] [reject | blackhole] [pub [only]]", |
| 746 | " arp -f filename"); |
| 747 | #else |
| 748 | "usage: arp -p <f-stack proc_id> [-n] [-i interface] hostname", |
| 749 | " arp -p <f-stack proc_id> [-n] [-i interface] -a", |
| 750 | " arp -p <f-stack proc_id> -d hostname [pub]", |
| 751 | " arp -p <f-stack proc_id> -d [-i interface] -a", |
| 752 | " arp -p <f-stack proc_id> -s hostname ether_addr [temp] [reject | blackhole] [pub [only]]", |
| 753 | " arp -p <f-stack proc_id> -S hostname ether_addr [temp] [reject | blackhole] [pub [only]]", |
| 754 | " arp -p <f-stack proc_id> -f filename"); |
| 755 | #endif |
| 756 | #ifdef FSTACK |
| 757 | ff_ipc_exit(); |
| 758 | #endif |
| 759 | |
| 760 | exit(1); |
| 761 | } |
| 762 | |
| 763 | static struct rt_msghdr * |
| 764 | rtmsg(int cmd, struct sockaddr_in *dst, struct sockaddr_dl *sdl) |
no test coverage detected