vpnkit: Add a config to specify the socket

This commit is contained in:
YAMAMOTO Takashi
2020-03-21 11:55:58 +09:00
committed by Xiang Xiao
parent 12a97acaed
commit 702d82d052
4 changed files with 10 additions and 3 deletions
+3 -2
View File
@@ -11,6 +11,7 @@ Configuration
CONFIG_SIM_NETDEV=y
CONFIG_SIM_NETDEV_TAP is not set
CONFIG_SIM_NETDEV_VPNKIT=y
CONFIG_SIM_NETDEV_VPNKIT_PATH="/tmp/vpnkit-nuttx"
You can use the sim:vpnkit configuration, which includes the above
settings.
@@ -35,5 +36,5 @@ You can use it as the following:
% vpnkit --ethernet /tmp/vpnkit-nuttx &
% ./nuttx
NOTE: The unix domain socket path (/tmp/vpnkit-nuttx) is
currently hardcoded in the code.
NuttX's CONFIG_SIM_NETDEV_VPNKIT_PATH should match vpnkit's
--ethernet option.