summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-21 14:38:15 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-21 14:38:15 -0700
commite2ca239be05ac4787091eb298ce0ed1012eacbd3 (patch)
treefd0d222dc88c165a382a8e01683a48ed47e2c397
parent4f237687ce4c0b7085733d808829fd4b83cf3483 (diff)
downloadinfinitytier-e2ca239be05ac4787091eb298ce0ed1012eacbd3.tar.gz
infinitytier-e2ca239be05ac4787091eb298ce0ed1012eacbd3.zip
Comment cleanup.
-rw-r--r--osdep/ManagedRoute.cpp5
-rw-r--r--osdep/ManagedRoute.hpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp
index aee01954..54990122 100644
--- a/osdep/ManagedRoute.cpp
+++ b/osdep/ManagedRoute.cpp
@@ -346,9 +346,10 @@ static bool _winRoute(bool del,const NET_LUID &interfaceLuid,const NET_IFINDEX &
} // anonymous namespace
/* Linux NOTE: for default route override, some Linux distributions will
- * require a change to the rp_filter parameter.
+ * require a change to the rp_filter parameter. A value of '1' will prevent
+ * default route override from working properly.
*
- * sudo sysctl net.ipv4.conf.all.rp_filter=2
+ * sudo sysctl -w net.ipv4.conf.all.rp_filter=2
*
* Add to /etc/sysctl.conf or /etc/sysctl.d/... to make permanent.
*
diff --git a/osdep/ManagedRoute.hpp b/osdep/ManagedRoute.hpp
index 7000e3a4..5dde12ad 100644
--- a/osdep/ManagedRoute.hpp
+++ b/osdep/ManagedRoute.hpp
@@ -50,6 +50,9 @@ public:
/**
* Initialize object and set route
*
+ * Note: on Windows, use the interface NET_LUID in hexadecimal as the
+ * "device name."
+ *
* @param target Route target (e.g. 0.0.0.0/0 for default)
* @param via Route next L3 hop or NULL InetAddress if local
* @param device Device name/ID if 'via' is null and route is local, otherwise ignored