Properly print the output for a sit (IPv6-in-IPv4) interface.
author"Robert P. J. Day" <rpjday@mindspring.com>
Mon, 26 Jun 2006 22:03:43 +0000 (22:03 -0000)
committer"Robert P. J. Day" <rpjday@mindspring.com>
Mon, 26 Jun 2006 22:03:43 +0000 (22:03 -0000)
networking/interface.c

index 4ad542d..a666c2e 100644 (file)
@@ -771,11 +771,24 @@ static const struct hwtype ppp_hwtype = {
        .type =         ARPHRD_PPP
 };
 
+#ifdef CONFIG_FEATURE_IPV6
+static const struct hwtype sit_hwtype = {
+       .name =                 "sit",
+       .title =                "IPv6-in-IPv4",
+       .type =                 ARPHRD_SIT,
+       .print =                UNSPEC_print,
+       .suppress_null_addr =   1
+} ;
+#endif
+
 static const struct hwtype * const hwtypes[] = {
        &loop_hwtype,
        &ether_hwtype,
        &ppp_hwtype,
        &unspec_hwtype,
+#ifdef CONFIG_FEATURE_IPV6
+       &sit_hwtype,
+#endif
        NULL
 };