Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/build-freebsd.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# FreeBSD Build Guide

**Updated for FreeBSD [15.0](https://www.freebsd.org/releases/15.0R/announce/)**
Bitcoin Core is supported on all [supported FreeBSD releases](https://www.freebsd.org/security/#sup).

This guide describes how to build bitcoind, command-line utilities, and GUI on FreeBSD.
This guide describes how to build bitcoind, command-line utilities, and GUI on the most recent production release.

## Preparation

Expand Down
4 changes: 2 additions & 2 deletions doc/build-netbsd.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# NetBSD Build Guide

**Updated for NetBSD [10.1](https://netbsd.org/releases/formal-10/NetBSD-10.1.html)**
Bitcoin Core is supported on all [supported NetBSD releases](https://www.netbsd.org/releases/).

This guide describes how to build bitcoind, command-line utilities, and GUI on NetBSD.
This guide describes how to build bitcoind, command-line utilities, and GUI on the latest release.

## Preparation

Expand Down
4 changes: 2 additions & 2 deletions doc/build-openbsd.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# OpenBSD Build Guide

**Updated for OpenBSD [7.8](https://www.openbsd.org/78.html)**
Bitcoin Core is supported on [the two most recent OpenBSD releases](https://www.openbsd.org/faq/faq5.html#Flavors).

This guide describes how to build bitcoind, command-line utilities, and GUI on OpenBSD.
This guide describes how to build bitcoind, command-line utilities, and GUI on the latest release.

## Preparation

Expand Down
11 changes: 2 additions & 9 deletions src/common/netif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@
#if defined(__linux__)
#include <linux/rtnetlink.h>
#elif defined(__FreeBSD__)
#include <osreldate.h>
#if __FreeBSD_version >= 1400000
// Workaround https://github.com/freebsd/freebsd-src/pull/1070.
#define typeof __typeof
#include <netlink/netlink.h>
#include <netlink/netlink_route.h>
#endif
#elif defined(WIN32)
#include <iphlpapi.h>
#elif defined(__APPLE__)
Expand Down Expand Up @@ -62,10 +57,8 @@ std::optional<CNetAddr> FromSockAddr(const struct sockaddr* addr, std::optional<
return std::nullopt;
}

// Linux and FreeBSD 14.0+. For FreeBSD 13.2 the code can be compiled but
// running it requires loading a special kernel module, otherwise socket(AF_NETLINK,...)
// will fail, so we skip that.
#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 1400000)
// Linux and FreeBSD.
#if defined(__linux__) || defined(__FreeBSD__)

// Good for responses containing ~ 10,000-15,000 routes.
static constexpr ssize_t NETLINK_MAX_RESPONSE_SIZE{1'048'576};
Expand Down
Loading