diff options
| author | Christophe Gouault <christophe.gouault@6wind.com> | 2020-08-24 18:01:15 +0200 |
|---|---|---|
| committer | Christophe Gouault <christophe.gouault@6wind.com> | 2020-09-21 10:17:35 +0200 |
| commit | 1eb92f06c4e39a47a82ae585cfb276497843de6c (patch) | |
| tree | 17ee7490850320dc573b80d0668da464cec41526 /lib/vrf.h | |
| parent | d58b6f7568dab83e07fe144915b7c33e093a8abd (diff) | |
vrf: VRF_DEFAULT must be 0, remove useless code
Code was added in the past to support a value of VRF_DEFAULT different
from 0. This option was abandoned, the default vrf id is always 0.
Remove this code, this will simplify the code and improve performance
(use a constant value instead of a function that performs tests).
Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
Diffstat (limited to 'lib/vrf.h')
| -rw-r--r-- | lib/vrf.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -262,12 +262,8 @@ extern int vrf_getaddrinfo(const char *node, const char *service, extern int vrf_ioctl(vrf_id_t vrf_id, int d, unsigned long request, char *args); -/* function called by macro VRF_DEFAULT - * to get the default VRF_ID - */ -extern vrf_id_t vrf_get_default_id(void); /* The default VRF ID */ -#define VRF_DEFAULT vrf_get_default_id() +#define VRF_DEFAULT 0 extern void vrf_set_default_name(const char *default_name, bool force); extern const char *vrf_get_default_name(void); |
