Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Macros | Typedefs | Functions
route.h File Reference

hICN route More...

#include <hicn/util/ip_address.h>
#include <hicn/ctrl/face.h>
Include dependency graph for route.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXSZ_ROUTE_   MAXSZ_PREFIX + 3 + MAXSZ_COST
 
#define MAXSZ_ROUTE   MAXSZ_ROUTE_ + NULLTERM
 

Typedefs

typedef u16 route_cost_t
 
typedef struct hicn_route_s hicn_route_t
 

Functions

hicn_route_t * hicn_route_create (ip_prefix_t *prefix, face_id_t face_id, route_cost_t cost)
 
hicn_route_t * hicn_route_dup (const hicn_route_t *route)
 
void hicn_route_free (hicn_route_t *route)
 
int hicn_route_cmp (const hicn_route_t *route1, const hicn_route_t *route2)
 
int hicn_route_get_prefix (const hicn_route_t *route, ip_prefix_t *prefix)
 
int hicn_route_set_prefix (hicn_route_t *route, const ip_prefix_t prefix)
 
int hicn_route_get_cost (const hicn_route_t *route, int *cost)
 
int hicn_route_set_cost (hicn_route_t *route, const int cost)
 
size_t hicn_route_snprintf (char *s, size_t size, const hicn_route_t *route)
 

Detailed Description

hICN route