Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1Fix compiling on OpenBSD31. The `net/if_types.h` header does not define the `IFT_STF` symbol.42. The `netinet6/in6_var.h` header defines some of the used symbols.6For the reference, see:7- https://codeberg.org/OpenBSD/ports/src/commit/f8f1aedbe8aff550c69930b5d92b9c392e298382/x11/qt6/qtbase/patches/patch-src_network_kernel_qnetworkinterface_unix_cpp10--- a/qtbase/src/network/kernel/qnetworkinterface_unix.cpp11+++ b/qtbase/src/network/kernel/qnetworkinterface_unix.cpp12@@ -392,6 +392,9 @@ QT_BEGIN_INCLUDE_NAMESPACE13# include <net/if_media.h>14# include <net/if_types.h>15# include <netinet/in_var.h>16+# ifdef Q_OS_OPENBSD17+# include <netinet6/in6_var.h>18+# endif19#endif // QT_PLATFORM_UIKIT20QT_END_INCLUDE_NAMESPACE22@@ -419,7 +422,9 @@ static QNetworkInterface::InterfaceType probeIfType(int socket, int iftype, stru23return QNetworkInterface::Ieee1394;25case IFT_GIF:26+#ifndef Q_OS_OPENBSD27case IFT_STF:28+#endif29return QNetworkInterface::Virtual;30}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.