File: netlink-sys.h

package info (click to toggle)
bird2 2.0.12-5~bpo11%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye-backports
  • size: 5,652 kB
  • sloc: ansic: 67,582; perl: 3,431; sh: 3,265; lex: 887; xml: 494; makefile: 404; python: 123; sed: 13
file content (29 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *	Netlink FreeBSD-specific functions
 *
 *	(c) 2022 Alexander Chernikov <melifaro@FreeBSD.org>
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */

#ifndef _BIRD_NETLINK_SYS_H_
#define _BIRD_NETLINK_SYS_H_

#include <netlink/netlink.h>
#include <netlink/netlink_route.h>

#ifndef	AF_MPLS
#define	AF_MPLS	39
#endif

#ifndef	SO_RCVBUFFORCE
#define	SO_RCVBUFFORCE	SO_RCVBUF
#endif

static inline int
netlink_error_to_os(int error)
{
	return (error);
}

#endif