Class Based Queueing (CBQ)
[Queueing Discipline ModulesClass Modules]

Functions

char * nl_ovl_strategy2str (int type, char *buf, size_t len)
 Convert a CBQ OVL strategy to a character string.
int nl_str2ovl_strategy (const char *name)
 Convert a string to a CBQ OVL strategy.

Function Documentation

char* nl_ovl_strategy2str ( int  type,
char *  buf,
size_t  len 
)
Parameters:
type CBQ OVL strategy
buf destination buffer
len length of destination buffer

Converts a CBQ OVL strategy to a character string and stores in the provided buffer. Returns the destination buffer or the type encoded in hex if no match was found.

Definition at line 49 of file cbq.c.

00050 {
00051         return __type2str(type, buf, len, ovl_strategies,
00052                             ARRAY_SIZE(ovl_strategies));
00053 }

int nl_str2ovl_strategy ( const char *  name  ) 
Parameters:
name CBQ OVL stragegy name

Converts a CBQ OVL stragegy name to it's corresponding CBQ OVL strategy type. Returns the type or -1 if none was found.

Definition at line 62 of file cbq.c.

00063 {
00064         return __str2type(name, ovl_strategies, ARRAY_SIZE(ovl_strategies));
00065 }


Generated on 30 Oct 2009 for libnl by  doxygen 1.6.1