libnl 3.5.0

Functions
Class Based Queueing (CBQ)
Routing Library (libnl-route) » Traffic Control » Queueing Disciplines Routing Library (libnl-route) » Traffic Control » | Traffic Classes

## 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

## ◆ nl_ovl_strategy2str()

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

Convert a CBQ OVL strategy to a character string.

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 48 of file cbq.c.

## ◆ nl_str2ovl_strategy()

int nl_str2ovl_strategy | ( | const char * | name | ) |

Convert a string to a CBQ OVL strategy.

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 61 of file cbq.c.