/** Netlink related functions. * * @file * @author Steffen Vogel * @copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC * This file is part of S2SS. All Rights Reserved. Proprietary and confidential. * Unauthorized copying of this file, via any medium is strictly prohibited. *********************************************************************************/ #ifndef _NL_H_ #define _NL_H_ #include #include #include /** Get index of outgoing interface for given destination address. * * @retval >=0 Interface index of outgoing interface. * @retval <0 Error. Something went wrong. */ int nl_get_egress(struct nl_addr *addr); /** Get or create global netlink socket. */ struct nl_sock * nl_init(); /** Close and free global netlink socket. */ void nl_shutdown(); #endif /* _NL_H_ */