diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-07 01:24:12 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-07 01:24:12 +0000 |
| commit | fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a (patch) | |
| tree | 0d2f47866709f0a555d28166b4aeca04dfb7808c /include/libbb.h | |
| parent | b05955e0a5aa5c16ef9460cf4bfed1ee589f5f64 (diff) | |
| download | busybox-w32-fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a.tar.gz busybox-w32-fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a.tar.bz2 busybox-w32-fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a.zip | |
add arp applet - thanks to
"Eric Spakman" <E.Spakman@inter.nl.net>
Diffstat (limited to 'include/libbb.h')
| -rw-r--r-- | include/libbb.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index e92e4db1c..6f66c8545 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -121,6 +121,38 @@ | |||
| 121 | /* scary. better ideas? (but do *test* them first!) */ | 121 | /* scary. better ideas? (but do *test* them first!) */ |
| 122 | #define OFF_T_MAX ((off_t)~((off_t)1 << (sizeof(off_t)*8-1))) | 122 | #define OFF_T_MAX ((off_t)~((off_t)1 << (sizeof(off_t)*8-1))) |
| 123 | 123 | ||
| 124 | /* This structure defines protocol families and their handlers. */ | ||
| 125 | struct aftype { | ||
| 126 | char *name; | ||
| 127 | char *title; | ||
| 128 | int af; | ||
| 129 | int alen; | ||
| 130 | char *(*print) (unsigned char *); | ||
| 131 | char *(*sprint) (struct sockaddr *, int numeric); | ||
| 132 | int (*input) (int type, char *bufp, struct sockaddr *); | ||
| 133 | void (*herror) (char *text); | ||
| 134 | int (*rprint) (int options); | ||
| 135 | int (*rinput) (int typ, int ext, char **argv); | ||
| 136 | |||
| 137 | /* may modify src */ | ||
| 138 | int (*getmask) (char *src, struct sockaddr * mask, char *name); | ||
| 139 | |||
| 140 | int fd; | ||
| 141 | char *flag_file; | ||
| 142 | }; | ||
| 143 | |||
| 144 | /* This structure defines hardware protocols and their handlers. */ | ||
| 145 | struct hwtype { | ||
| 146 | char *name; | ||
| 147 | char *title; | ||
| 148 | int type; | ||
| 149 | int alen; | ||
| 150 | char *(*print) (unsigned char *); | ||
| 151 | int (*input) (char *, struct sockaddr *); | ||
| 152 | int (*activate) (int fd); | ||
| 153 | int suppress_null_addr; | ||
| 154 | }; | ||
| 155 | |||
| 124 | /* Some useful definitions */ | 156 | /* Some useful definitions */ |
| 125 | #undef FALSE | 157 | #undef FALSE |
| 126 | #define FALSE ((int) 0) | 158 | #define FALSE ((int) 0) |
| @@ -426,8 +458,13 @@ extern int bb_test(int argc, char** argv); | |||
| 426 | int create_icmp_socket(void); | 458 | int create_icmp_socket(void); |
| 427 | int create_icmp6_socket(void); | 459 | int create_icmp6_socket(void); |
| 428 | /* interface.c */ | 460 | /* interface.c */ |
| 461 | struct aftype; | ||
| 462 | struct hwtype; | ||
| 429 | extern int interface_opt_a; | 463 | extern int interface_opt_a; |
| 430 | int display_interfaces(char *ifname); | 464 | int display_interfaces(char *ifname); |
| 465 | struct aftype *get_aftype(const char *name); | ||
| 466 | const struct hwtype *get_hwtype(const char *name); | ||
| 467 | const struct hwtype *get_hwntype(int type); | ||
| 431 | 468 | ||
| 432 | 469 | ||
| 433 | #ifndef BUILD_INDIVIDUAL | 470 | #ifndef BUILD_INDIVIDUAL |
