mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-23 00:00:01 +01:00
30 lines
No EOL
929 B
C
30 lines
No EOL
929 B
C
/** Netlink related functions.
|
|
*
|
|
* @file
|
|
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
|
* @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 <netlink/netlink.h>
|
|
#include <netlink/route/route.h>
|
|
#include <netlink/route/link.h>
|
|
|
|
/** 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_ */ |