Classes | Defines | Enumerations | Functions
conf.h File Reference
#include <asm/uaccess.h>
#include <linux/proc_fs.h>
Include dependency graph for conf.h:
This graph shows which files directly or indirectly include this file:

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

#define NUM_PORTS   50

Definition at line 29 of file conf.h.


Enumeration Type Documentation

enum tpDir
Enumerator:
FROM 
TO 

Definition at line 71 of file conf.h.

enum tpProto
Enumerator:
UDP 
TCP 

Definition at line 68 of file conf.h.

enum tpTraffic
Enumerator:
QoS 
BROADCAST 
OTHER 
DROP 

Definition at line 35 of file conf.h.


Function Documentation

int conf_close_proc ( tpConfig conf)

Definition at line 50 of file conf.c.

int conf_init_proc ( void  )

Definition at line 38 of file conf.c.

struct proc_dir_entry* get_proc_root ( void  ) [read]

Definition at line 532 of file proc.c.

int getConfICMP ( tpConfig conf,
signed char *  priority,
tpTraffic traffic 
)

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.

int getPortConf ( tpConfig conf,
tpProto  proto,
tpDir  dir,
u16  port,
signed char *  priority,
tpTraffic traffic 
)

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.

int readConfig ( tpConfig conf)

Reads the configuration from the file and stores it in 'conf'

Definition at line 162 of file conf.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12