diff options
author | Alexander Chernikov <melifaro@FreeBSD.org> | 2022-12-16 19:20:05 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2022-12-16 19:21:51 +0100 |
commit | 176fc68aed32a5675aa643e3b7c6f65ff9ad13d0 (patch) | |
tree | 3113e0d0a2d48bab4aec48134fd89c7db7d9b174 /sysdep/bsd-netlink/netlink-sys.h | |
parent | 7b6c9649775b288653b0d61df6004d79f0d83ccf (diff) |
Netlink: move OS-specific headers and defines to sysdep
Minor changes from committer.
Diffstat (limited to 'sysdep/bsd-netlink/netlink-sys.h')
-rw-r--r-- | sysdep/bsd-netlink/netlink-sys.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sysdep/bsd-netlink/netlink-sys.h b/sysdep/bsd-netlink/netlink-sys.h new file mode 100644 index 00000000..a6e5052b --- /dev/null +++ b/sysdep/bsd-netlink/netlink-sys.h @@ -0,0 +1,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 |