From 1ecab6b96533890838e9f3abaf4e7747f85a1afc Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 6 Aug 2009 18:43:55 -0700 Subject: [PATCH] DEVFS - vknetd - Change default socket path from /dev/vknet to /var/run/vknet Move the default socket path to something not inside /dev. --- usr.sbin/vknetd/vknetd.8 | 6 +++--- usr.sbin/vknetd/vknetd.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/vknetd/vknetd.8 b/usr.sbin/vknetd/vknetd.8 index afaa63c7dd..d6100a9e98 100644 --- a/usr.sbin/vknetd/vknetd.8 +++ b/usr.sbin/vknetd/vknetd.8 @@ -56,7 +56,7 @@ General use is to specify a large 10-dot network which multiple vkernels are then able to connect to, and backfeed the whole mess to a TAP interface. .Pp A vkernel would make use of the virtualized network by specifying -.Fl I Ar /dev/vknet +.Fl I Ar /var/run/vknet instead of a .Xr tap 4 interface. @@ -96,7 +96,7 @@ will be bridged into the specified bridge. .It Fl p Ar socket_path Specify where to create the unix domain socket in the filesystem space. By default the socket is called -.Pa /dev/vknet . +.Pa /var/run/vknet . .It Fl t Ar tapN Specify a particular .Xr tap 4 @@ -137,7 +137,7 @@ In addition, a 'vknet' group must exist in /etc/groups. TAP interface used to route packets from userland providers back into the real machine. If not otherwise specified an unused tap interface will be selected. -.It Pa /dev/vknet +.It Pa /var/run/vknet Default socket .Nm sits on waiting for connections. diff --git a/usr.sbin/vknetd/vknetd.c b/usr.sbin/vknetd/vknetd.c index af8108ea8d..acac9e090c 100644 --- a/usr.sbin/vknetd/vknetd.c +++ b/usr.sbin/vknetd/vknetd.c @@ -62,7 +62,7 @@ struct in_addr NetMask; int main(int ac, char **av) { - const char *pathName = "/dev/vknet"; + const char *pathName = "/var/run/vknet"; const char *tapName = "auto"; const char *bridgeName = NULL; int net_fd, tap_fd; -- 2.11.4.GIT