netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Collaboration diagram for Class Based Queueing (CBQ):

Functions

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

Detailed Description

Function Documentation

char* nl_ovl_strategy2str ( int  type,
char *  buf,
size_t  len 
)

Convert a CBQ OVL strategy to a character string.

  • 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.

References __type2str(), and ARRAY_SIZE.

Here is the call graph for this function:

int nl_str2ovl_strategy ( const char *  name)

Convert a string to a CBQ OVL strategy.

  • 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.

References __str2type(), and ARRAY_SIZE.

Here is the call graph for this function: