vlanproc.h 537 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4
#ifndef __BEN_VLAN_PROC_INC__
#define __BEN_VLAN_PROC_INC__

#ifdef CONFIG_PROC_FS
5 6 7
struct net;

int vlan_proc_init(struct net *net);
L
Linus Torvalds 已提交
8
int vlan_proc_rem_dev(struct net_device *vlandev);
P
Patrick McHardy 已提交
9
int vlan_proc_add_dev(struct net_device *vlandev);
10
void vlan_proc_cleanup(struct net *net);
L
Linus Torvalds 已提交
11 12 13

#else /* No CONFIG_PROC_FS */

14 15
#define vlan_proc_init(net)	(0)
#define vlan_proc_cleanup(net)	do {} while (0)
P
Patrick McHardy 已提交
16 17
#define vlan_proc_add_dev(dev)	({(void)(dev), 0; })
#define vlan_proc_rem_dev(dev)	({(void)(dev), 0; })
L
Linus Torvalds 已提交
18 19 20
#endif

#endif /* !(__BEN_VLAN_PROC_INC__) */