vlanproc.h 496 B

12345678910111213141516171819
  1. #ifndef __BEN_VLAN_PROC_INC__
  2. #define __BEN_VLAN_PROC_INC__
  3. #ifdef CONFIG_PROC_FS
  4. int vlan_proc_init(void);
  5. int vlan_proc_rem_dev(struct net_device *vlandev);
  6. int vlan_proc_add_dev (struct net_device *vlandev);
  7. void vlan_proc_cleanup (void);
  8. #else /* No CONFIG_PROC_FS */
  9. #define vlan_proc_init() (0)
  10. #define vlan_proc_cleanup() do {} while(0)
  11. #define vlan_proc_add_dev(dev) ({(void)(dev), 0;})
  12. #define vlan_proc_rem_dev(dev) ({(void)(dev), 0;})
  13. #endif
  14. #endif /* !(__BEN_VLAN_PROC_INC__) */