diff options
author | François Cachereul <f.cachereul@alphalink.fr> | 2015-01-27 12:07:03 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-02-20 11:21:41 +0300 |
commit | 5697671c8cb6018de4e4307c459afd25d3b58410 (patch) | |
tree | 59a8594e45e7fc201fdcf1d5c3cb6c200907ea2a /accel-pppd/ppp | |
parent | e4b4e0eef7fe04f7c202177cee82aa5ed4829387 (diff) | |
download | accel-ppp-5697671c8cb6018de4e4307c459afd25d3b58410.tar.gz accel-ppp-5697671c8cb6018de4e4307c459afd25d3b58410.zip |
ppp: set unit_idx from NAS_Port attribute if present
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index 6c80b9ca..fec330ff 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -163,7 +163,6 @@ int __export connect_ppp_channel(struct ppp_t *ppp) fcntl(ppp->unit_fd, F_SETFD, fcntl(ppp->unit_fd, F_GETFD) | FD_CLOEXEC); - ppp->ses.unit_idx = -1; if (ioctl(ppp->unit_fd, PPPIOCNEWUNIT, &ppp->ses.unit_idx) < 0) { log_ppp_error("ioctl(PPPIOCNEWUNIT): %s\n", strerror(errno)); goto exit_close_unit; |