diff options
author | Denis Vlasenko | 2007-01-07 01:24:12 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-07 01:24:12 +0000 |
commit | fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a (patch) | |
tree | 0d2f47866709f0a555d28166b4aeca04dfb7808c /include/libbb.h | |
parent | b05955e0a5aa5c16ef9460cf4bfed1ee589f5f64 (diff) | |
download | busybox-fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a.zip busybox-fa85b86f388fb037b67fa7fcc3b5502c8d0fa84a.tar.gz |
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 e92e4db..6f66c85 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -121,6 +121,38 @@ /* scary. better ideas? (but do *test* them first!) */ #define OFF_T_MAX ((off_t)~((off_t)1 << (sizeof(off_t)*8-1))) +/* This structure defines protocol families and their handlers. */ +struct aftype { + char *name; + char *title; + int af; + int alen; + char *(*print) (unsigned char *); + char *(*sprint) (struct sockaddr *, int numeric); + int (*input) (int type, char *bufp, struct sockaddr *); + void (*herror) (char *text); + int (*rprint) (int options); + int (*rinput) (int typ, int ext, char **argv); + + /* may modify src */ + int (*getmask) (char *src, struct sockaddr * mask, char *name); + + int fd; + char *flag_file; +}; + +/* This structure defines hardware protocols and their handlers. */ +struct hwtype { + char *name; + char *title; + int type; + int alen; + char *(*print) (unsigned char *); + int (*input) (char *, struct sockaddr *); + int (*activate) (int fd); + int suppress_null_addr; +}; + /* Some useful definitions */ #undef FALSE #define FALSE ((int) 0) @@ -426,8 +458,13 @@ extern int bb_test(int argc, char** argv); int create_icmp_socket(void); int create_icmp6_socket(void); /* interface.c */ +struct aftype; +struct hwtype; extern int interface_opt_a; int display_interfaces(char *ifname); +struct aftype *get_aftype(const char *name); +const struct hwtype *get_hwtype(const char *name); +const struct hwtype *get_hwntype(int type); #ifndef BUILD_INDIVIDUAL |