summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/physical.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-05-14 12:55:39 +0000
committerbrian <brian@FreeBSD.org>2002-05-14 12:55:39 +0000
commitc2da7c8697491402af4f8ab3082d2c047114ccad (patch)
tree213dbf675b601fdd2934367847c24da5854fd2d9 /usr.sbin/ppp/physical.c
parent4e0ba1d0e6f3418e983e80b52552d0cd201048bb (diff)
downloadFreeBSD-src-c2da7c8697491402af4f8ab3082d2c047114ccad.zip
FreeBSD-src-c2da7c8697491402af4f8ab3082d2c047114ccad.tar.gz
o Clean up some #includes
o Bump version number to 3.0.4 o When talking to a RADIUS server, provide a NAS-Port-Type. When the NAS-Port-Type is Ethernet, provide a NAS-Port value equal to the SESSIONID from the environment in direct mode or the NGM_PPPOE_SESSIONID message in other modes. If no SESSIONID is found, default to the interface index in client mode or zero in server mode. When the NAS-Port-Type is ISDN, set the NAS-Port to the minor number of the physical device (ie, the N in /dev/i4brbchN). This makes it easier for the RADIUS server to identify the client WRT accounting data etc. Prompted by: lsz8425 <lsz8425@mail.cd.hn.cn>
Diffstat (limited to 'usr.sbin/ppp/physical.c')
-rw-r--r--usr.sbin/ppp/physical.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c
index 9bce72e..476fc84 100644
--- a/usr.sbin/ppp/physical.c
+++ b/usr.sbin/ppp/physical.c
@@ -30,9 +30,6 @@
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
-#ifdef NOSUID
-#include <signal.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -71,7 +68,6 @@
#include "iplist.h"
#include "slcompress.h"
#include "ncpaddr.h"
-#include "ip.h"
#include "ipcp.h"
#include "filter.h"
#include "descriptor.h"
@@ -1114,3 +1110,12 @@ physical_SetAsyncParams(struct physical *p, u_int32_t mymap, u_int32_t hismap)
async_SetLinkParams(&p->async, mymap, hismap);
}
+
+int
+physical_Slot(struct physical *p)
+{
+ if (p->handler && p->handler->slot)
+ return (*p->handler->slot)(p);
+
+ return -1;
+}
OpenPOWER on IntegriCloud