From 7475c4047e81cf83f16eed4449ad8408eeaacaec Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 23 Jul 2014 09:14:53 -0700 Subject: A bunch more osdep/ work... --- node/osdep/BSDRoutingTable.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'node/osdep/BSDRoutingTable.cpp') diff --git a/node/osdep/BSDRoutingTable.cpp b/node/osdep/BSDRoutingTable.cpp index 92a87da0..fede9cce 100644 --- a/node/osdep/BSDRoutingTable.cpp +++ b/node/osdep/BSDRoutingTable.cpp @@ -43,7 +43,7 @@ #include #include -#include "Constants.hpp" +#include "../Constants.hpp" #include "BSDRoutingTable.hpp" // All I wanted was the bloody rounting table. I didn't expect the Spanish inquisition. @@ -115,6 +115,9 @@ std::vector BSDRoutingTable::get(bool includeLinkLocal,bool // Nobody expects the Spanish inquisition! if ((sin6->sin6_addr.s6_addr[0] == 0xfe)&&((sin6->sin6_addr.s6_addr[1] & 0xc0) == 0x80)) { // Our chief weapon is... in-band signaling! + // Seriously who in the living fuck thought this was a good idea and + // then had the sadistic idea to not document it anywhere? Of course it's + // not like there is any documentation on BSD sysctls anyway. unsigned int interfaceIndex = ((((unsigned int)sin6->sin6_addr.s6_addr[2]) << 8) & 0xff) | (((unsigned int)sin6->sin6_addr.s6_addr[3]) & 0xff); sin6->sin6_addr.s6_addr[2] = 0; sin6->sin6_addr.s6_addr[3] = 0; -- cgit v1.2.3