diff options
author | brian <brian@FreeBSD.org> | 1999-11-06 22:50:59 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-06 22:50:59 +0000 |
commit | cac81ba45e2e673e229f5ea7773bab9d5a35b735 (patch) | |
tree | 05464cda97fbc141305fb350e1211787d0b945dc /usr.sbin/ppp/datalink.c | |
parent | 5e8870e5439ac382bd1d3732b119bf5cf81405b6 (diff) | |
download | FreeBSD-src-cac81ba45e2e673e229f5ea7773bab9d5a35b735.zip FreeBSD-src-cac81ba45e2e673e229f5ea7773bab9d5a35b735.tar.gz |
Support PPPoE
Help (lots) from: julian, archie
Facilities from: ahebert@pubnix.net
Diffstat (limited to 'usr.sbin/ppp/datalink.c')
-rw-r--r-- | usr.sbin/ppp/datalink.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index 4313fd5..40f22f1 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -1245,7 +1245,7 @@ datalink_NewState(struct datalink *dl, int state) struct datalink * iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov, - int fd) + int fd, int *auxfd, int *nauxfd) { struct datalink *dl, *cdl; struct fsm_retry copy; @@ -1306,7 +1306,7 @@ iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov, dl->fsmp.LayerFinish = datalink_LayerFinish; dl->fsmp.object = dl; - dl->physical = iov2physical(dl, iov, niov, maxiov, fd); + dl->physical = iov2physical(dl, iov, niov, maxiov, fd, auxfd, nauxfd); if (!dl->physical) { free(dl->name); @@ -1335,7 +1335,7 @@ iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov, int datalink2iov(struct datalink *dl, struct iovec *iov, int *niov, int maxiov, - pid_t newpid) + int *auxfd, int *nauxfd, pid_t newpid) { /* If `dl' is NULL, we're allocating before a Fromiov() */ int link_fd; @@ -1363,7 +1363,8 @@ datalink2iov(struct datalink *dl, struct iovec *iov, int *niov, int maxiov, dl ? realloc(dl->name, DATALINK_MAXNAME) : malloc(DATALINK_MAXNAME); iov[(*niov)++].iov_len = DATALINK_MAXNAME; - link_fd = physical2iov(dl ? dl->physical : NULL, iov, niov, maxiov, newpid); + link_fd = physical2iov(dl ? dl->physical : NULL, iov, niov, maxiov, auxfd, + nauxfd, newpid); if (link_fd == -1 && dl) { free(dl->name); |