]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/net/wext.h
ipv6: Remove options header when setsockopt's optlen is 0
[net-next-2.6.git] / include / net / wext.h
CommitLineData
295f4a1f
JB
1#ifndef __NET_WEXT_H
2#define __NET_WEXT_H
3
4/*
5 * wireless extensions interface to the core code
6 */
7
881d966b
EB
8struct net;
9
295f4a1f 10#ifdef CONFIG_WIRELESS_EXT
881d966b
EB
11extern int wext_proc_init(struct net *net);
12extern void wext_proc_exit(struct net *net);
13extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
295f4a1f
JB
14 void __user *arg);
15#else
881d966b 16static inline int wext_proc_init(struct net *net)
295f4a1f
JB
17{
18 return 0;
19}
881d966b
EB
20static inline void wext_proc_exit(struct net *net)
21{
22 return;
23}
24static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
295f4a1f
JB
25 void __user *arg)
26{
27 return -EINVAL;
28}
29#endif
30
31#endif /* __NET_WEXT_H */