Our first Netlink syncer!
Add lcpng_nl_sync.c that will house these functions. Their purpose is to take state learned from netlink messages, and apply that state to VPP. Some rearranging/plumbing was necessary to get logging to be visible in this new source file. Then, we add lcp_nl_neigh_add() and _del() which look up the LIP, convert the lladdr and ip address from Netlink into VPP variants, and then add or remove the ip4/ip6 neighbor adjacency.
This commit is contained in:
@ -75,12 +75,15 @@ typedef struct lcp_nl_main
|
||||
u32 batch_delay_ms;
|
||||
|
||||
} lcp_nl_main_t;
|
||||
|
||||
static void lcp_nl_open_socket (u8 *ns);
|
||||
static void lcp_nl_close_socket (void);
|
||||
extern lcp_nl_main_t lcp_nl_main;
|
||||
|
||||
u8 *format_nl_object (u8 *s, va_list *args);
|
||||
|
||||
/* Functions from lcpng_nl_sync.c
|
||||
*/
|
||||
void lcp_nl_neigh_add (struct rtnl_neigh *rn);
|
||||
void lcp_nl_neigh_del (struct rtnl_neigh *rn);
|
||||
|
||||
/*
|
||||
* fd.io coding-style-patch-verification: ON
|
||||
*
|
||||
|
Reference in New Issue
Block a user