#include <asm/uaccess.h>
#include <linux/proc_fs.h>
Go to the source code of this file.
Classes |
struct | tpConfig |
struct | tpPort |
struct | tpPortConf |
struct | tpPortConfICMP |
Defines |
#define | NUM_PORTS 50 |
Enumerations |
enum | tpDir { FROM,
TO
} |
enum | tpProto { UDP,
TCP
} |
enum | tpTraffic { QoS,
BROADCAST,
OTHER,
DROP
} |
Functions |
int | conf_close_proc (tpConfig *conf) |
int | conf_init_proc (void) |
struct proc_dir_entry * | get_proc_root (void) |
int | getConfICMP (tpConfig *conf, signed char *priority, tpTraffic *traffic) |
int | getPortConf (tpConfig *conf, tpProto proto, tpDir dir, u16 port, signed char *priority, tpTraffic *traffic) |
int | readConfig (tpConfig *conf) |
Define Documentation
Enumeration Type Documentation
- Enumerator:
-
Definition at line 71 of file conf.h.
- Enumerator:
-
Definition at line 68 of file conf.h.
- Enumerator:
-
Definition at line 35 of file conf.h.
Function Documentation
Returns TRUE only if there is a configuration for ICMP in 'conf' The priority and the type of traffic for ICMP are assigned to 'priority' and 'traffic'
Definition at line 296 of file conf.c.
Returns TRUE only if the given port has a configuration in 'conf' for the given protocol and the given direction The priority and the type of traffic are assigned to 'priority' and 'traffic'
Definition at line 273 of file conf.c.
Reads the configuration from the file and stores it in 'conf'
Definition at line 162 of file conf.c.