/* -*- linux-c -*- # (C) Copyright 2005 # Ben Greear # Released under the GPL version 2 */ #ifndef REDIRDEV_KERNEL_H_FILE__ #define REDIRDEV_KERNEL_H_FILE__ /* Proc file related */ #define RDD_MX_ARG_LEN 80 #ifdef CONFIG_PROC_FS /* To use or not to use the PROC-FS */ #define RDD_CONFIG_PROC_FS #endif /*********************************************************/ /* types */ /*********************************************************/ struct redirdev { /* Can be NULL if not yet associated */ struct net_device* tx_dev; /* Call rx on this device when a packet * is _transmitted_ on this redirect * device. */ struct net_device* dev; /* the device struct this belongs too */ struct redirdev *next; char tx_dev_name[IFNAMSIZ]; struct net_device_stats statistics; }; #endif