frr/zebra/ge_netlink.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
635 B
C
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Header file exported by ge_netlink.c to zebra.
* Copyright (C) 2022, Carmine Scarpitta
*/
#ifndef _ZEBRA_GE_NETLINK_H
#define _ZEBRA_GE_NETLINK_H
#include "zebra_dplane.h"
#ifdef HAVE_NETLINK
#include <linux/genetlink.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Generic Netlink request message */
struct genl_request {
struct nlmsghdr n;
struct genlmsghdr g;
char buf[1024];
};
extern int genl_resolve_family(const char *family);
extern void ge_netlink_init(struct zebra_ns *zns);
#ifdef __cplusplus
}
#endif
#endif /* HAVE_NETLINK */
#endif /* _ZEBRA_GE_NETLINK_H */