1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
---
ifconfig/flags.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
--- a/ifconfig/flags.c
+++ b/ifconfig/flags.c
@@ -389,20 +389,36 @@ struct if_flag_char
That's the way netstat does it.
*/
static struct if_flag_char flag_char_tab[] = {
+#ifdef IFF_ALLMULTI
{ IFF_ALLMULTI, 'A' },
+#endif
+#ifdef IFF_BROADCAST
{ IFF_BROADCAST, 'B' },
+#endif
+#ifdef IFF_DEBUG
{ IFF_DEBUG, 'D' },
+#endif
+#ifdef IFF_LOOPBACK
{ IFF_LOOPBACK, 'L' },
+#endif
+#ifdef IFF_MULTICAST
{ IFF_MULTICAST, 'M' },
+#endif
#ifdef HAVE_DYNAMIC
{ IFF_DYNAMIC, 'd' },
#endif
+#ifdef IFF_PROMISC
{ IFF_PROMISC, 'P' },
+#endif
#ifdef IFF_NOTRAILERS
{ IFF_NOTRAILERS, 'N' },
#endif
+#ifdef IFF_NOARP
{ IFF_NOARP, 'O' },
+#endif
+#ifdef IFF_POINTOPOINT
{ IFF_POINTOPOINT, 'P' },
+#endif
#ifdef IFF_SLAVE
{ IFF_SLAVE, 's' },
#endif
@@ -412,8 +428,12 @@ static struct if_flag_char flag_char_tab
#ifdef IFF_SIMPLEX
{ IFF_SIMPLEX, 'S' },
#endif
+#ifdef IFF_RUNNING
{ IFF_RUNNING, 'R' },
+#endif
+#ifdef IFF_UP
{ IFF_UP, 'U' },
+#endif
{ 0 }
};
|