diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-11-06 22:50:59 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-11-06 22:50:59 +0000 |
commit | 87c3786e7fcf8e978e801f03208d8bab4468980f (patch) | |
tree | 05464cda97fbc141305fb350e1211787d0b945dc /usr.sbin/ppp/datalink.c | |
parent | 86f001b84ca04aafd1d82d406acdf49339380449 (diff) | |
download | src-87c3786e7fcf8e978e801f03208d8bab4468980f.tar.gz src-87c3786e7fcf8e978e801f03208d8bab4468980f.zip |
Support PPPoE
Help (lots) from: julian, archie
Facilities from: ahebert@pubnix.net
Notes
Notes:
svn path=/head/; revision=52942
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 4313fd552e91..40f22f1fc8ba 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); |