diff options
| author | "Robert P. J. Day" <rpjday@mindspring.com> | 2006-06-26 22:03:43 +0000 |
|---|---|---|
| committer | "Robert P. J. Day" <rpjday@mindspring.com> | 2006-06-26 22:03:43 +0000 |
| commit | 21302c2b789352d9ab741f91c1ac2e4f5cd71c68 (patch) | |
| tree | d97e617ef183b40b8f5a365d31bdd4c7fa7172f4 | |
| parent | 4137dd783b66d609ed033233bc2efad446c975c2 (diff) | |
| download | busybox-w32-21302c2b789352d9ab741f91c1ac2e4f5cd71c68.tar.gz busybox-w32-21302c2b789352d9ab741f91c1ac2e4f5cd71c68.tar.bz2 busybox-w32-21302c2b789352d9ab741f91c1ac2e4f5cd71c68.zip | |
Properly print the output for a sit (IPv6-in-IPv4) interface.
| -rw-r--r-- | networking/interface.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/networking/interface.c b/networking/interface.c index 4ad542d14..a666c2ef4 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
| @@ -771,11 +771,24 @@ static const struct hwtype ppp_hwtype = { | |||
| 771 | .type = ARPHRD_PPP | 771 | .type = ARPHRD_PPP |
| 772 | }; | 772 | }; |
| 773 | 773 | ||
| 774 | #ifdef CONFIG_FEATURE_IPV6 | ||
| 775 | static const struct hwtype sit_hwtype = { | ||
| 776 | .name = "sit", | ||
| 777 | .title = "IPv6-in-IPv4", | ||
| 778 | .type = ARPHRD_SIT, | ||
| 779 | .print = UNSPEC_print, | ||
| 780 | .suppress_null_addr = 1 | ||
| 781 | } ; | ||
| 782 | #endif | ||
| 783 | |||
| 774 | static const struct hwtype * const hwtypes[] = { | 784 | static const struct hwtype * const hwtypes[] = { |
| 775 | &loop_hwtype, | 785 | &loop_hwtype, |
| 776 | ðer_hwtype, | 786 | ðer_hwtype, |
| 777 | &ppp_hwtype, | 787 | &ppp_hwtype, |
| 778 | &unspec_hwtype, | 788 | &unspec_hwtype, |
| 789 | #ifdef CONFIG_FEATURE_IPV6 | ||
| 790 | &sit_hwtype, | ||
| 791 | #endif | ||
| 779 | NULL | 792 | NULL |
| 780 | }; | 793 | }; |
| 781 | 794 | ||
