does busybox actually support IPv6?

Robert P. J. Day rpjday at mindspring.com
Thu May 18 11:44:13 UTC 2006


  i ask given the following snippets from networking/interface.c:

===========================

...

#ifdef CONFIG_FEATURE_IPV6
# define HAVE_AFINET6 1           <--  OK ...
#else
# undef HAVE_AFINET6
#endif

...

#ifdef KEEP_UNUSED

static int flag_unx;
static int flag_inet;

static struct aftrans_t {
        char *alias;
        char *name;
        int *flag;
} aftrans[] = {

        {
        "ip", "inet", &flag_inet},
#ifdef HAVE_AFINET6                <-- ... and ...
        {
        "ip6", "inet6", &flag_inet6},    <-- hello?
#endif
        {
        "inet", "inet", &flag_inet},
#ifdef HAVE_AFINET6
        {
        "inet6", "inet6", &flag_inet6},
#endif
        {
        "unix", "unix", &flag_unx}, {
        "tcpip", "inet", &flag_inet},
        {
        0, 0, 0}
};

...
===========================

  notice what's missing?  a definition of "flag_inet6".  wouldn't this
be a problem?  or is there something happening here just too tricky
for me to appreciate?

rday



More information about the busybox mailing list