diff options
Diffstat (limited to 'include/linux/if.h')
-rw-r--r-- | include/linux/if.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/linux/if.h b/include/linux/if.h index b9a6229f3be7..3a9f410a296b 100644 --- a/include/linux/if.h +++ b/include/linux/if.h | |||
@@ -70,6 +70,7 @@ | |||
70 | #define IFF_XMIT_DST_RELEASE 0x400 /* dev_hard_start_xmit() is allowed to | 70 | #define IFF_XMIT_DST_RELEASE 0x400 /* dev_hard_start_xmit() is allowed to |
71 | * release skb->dst | 71 | * release skb->dst |
72 | */ | 72 | */ |
73 | #define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */ | ||
73 | 74 | ||
74 | #define IF_GET_IFACE 0x0001 /* for querying only */ | 75 | #define IF_GET_IFACE 0x0001 /* for querying only */ |
75 | #define IF_GET_PROTO 0x0002 | 76 | #define IF_GET_PROTO 0x0002 |
@@ -125,8 +126,7 @@ enum { | |||
125 | * being very small might be worth keeping for clean configuration. | 126 | * being very small might be worth keeping for clean configuration. |
126 | */ | 127 | */ |
127 | 128 | ||
128 | struct ifmap | 129 | struct ifmap { |
129 | { | ||
130 | unsigned long mem_start; | 130 | unsigned long mem_start; |
131 | unsigned long mem_end; | 131 | unsigned long mem_end; |
132 | unsigned short base_addr; | 132 | unsigned short base_addr; |
@@ -136,8 +136,7 @@ struct ifmap | |||
136 | /* 3 bytes spare */ | 136 | /* 3 bytes spare */ |
137 | }; | 137 | }; |
138 | 138 | ||
139 | struct if_settings | 139 | struct if_settings { |
140 | { | ||
141 | unsigned int type; /* Type of physical device or protocol */ | 140 | unsigned int type; /* Type of physical device or protocol */ |
142 | unsigned int size; /* Size of the data allocated by the caller */ | 141 | unsigned int size; /* Size of the data allocated by the caller */ |
143 | union { | 142 | union { |
@@ -161,8 +160,7 @@ struct if_settings | |||
161 | * remainder may be interface specific. | 160 | * remainder may be interface specific. |
162 | */ | 161 | */ |
163 | 162 | ||
164 | struct ifreq | 163 | struct ifreq { |
165 | { | ||
166 | #define IFHWADDRLEN 6 | 164 | #define IFHWADDRLEN 6 |
167 | union | 165 | union |
168 | { | 166 | { |
@@ -211,11 +209,9 @@ struct ifreq | |||
211 | * must know all networks accessible). | 209 | * must know all networks accessible). |
212 | */ | 210 | */ |
213 | 211 | ||
214 | struct ifconf | 212 | struct ifconf { |
215 | { | ||
216 | int ifc_len; /* size of buffer */ | 213 | int ifc_len; /* size of buffer */ |
217 | union | 214 | union { |
218 | { | ||
219 | char __user *ifcu_buf; | 215 | char __user *ifcu_buf; |
220 | struct ifreq __user *ifcu_req; | 216 | struct ifreq __user *ifcu_req; |
221 | } ifc_ifcu; | 217 | } ifc_ifcu; |