diff options
Diffstat (limited to 'usr.sbin/ppp/id.c')
-rw-r--r-- | usr.sbin/ppp/id.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c index 0d15c92..f2b4581 100644 --- a/usr.sbin/ppp/id.c +++ b/usr.sbin/ppp/id.c @@ -32,6 +32,9 @@ #include <sys/ioctl.h> #include <fcntl.h> +#ifndef NONETGRAPH +#include <netgraph.h> +#endif #include <signal.h> #include <stdarg.h> #include <stdio.h> @@ -296,3 +299,18 @@ ID0kldload(const char *dev) return result; } #endif + +#ifndef NONETGRAPH +int +ID0NgMkSockNode(const char *name, int *cs, int *ds) +{ + int result; + + ID0set0(); + result = NgMkSockNode(name, cs, ds); + log_Printf(LogID0, "%d = NgMkSockNode(\"%s\", &cs, &ds)\n", + result, name ? name : ""); + ID0setuser(); + return result; +} +#endif |