diff options
author | brian <brian@FreeBSD.org> | 1999-05-24 16:39:17 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-05-24 16:39:17 +0000 |
commit | c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3 (patch) | |
tree | b8be473b5d7c5052d1cbdeb29b649e908e467308 /usr.sbin/ppp/tcp.c | |
parent | 96fd7bde688afba4d5ecad71cff2b31f875067b3 (diff) | |
download | FreeBSD-src-c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3.zip FreeBSD-src-c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3.tar.gz |
Correct the ``ignoring sync/async'' warnings so that they show
up with the correct device type.
Reassign the correct tcpdevice or execdevice after transfering
a link in MP server mode.
Diffstat (limited to 'usr.sbin/ppp/tcp.c')
-rw-r--r-- | usr.sbin/ppp/tcp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/tcp.c b/usr.sbin/ppp/tcp.c index 4fac926..ab7c32c 100644 --- a/usr.sbin/ppp/tcp.c +++ b/usr.sbin/ppp/tcp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tcp.c,v 1.1 1999/05/08 11:07:45 brian Exp $ + * $Id: tcp.c,v 1.2 1999/05/12 09:49:04 brian Exp $ */ #include <sys/types.h> @@ -115,8 +115,10 @@ struct device * tcp_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, int maxiov) { - if (type == TCP_DEVICE) + if (type == TCP_DEVICE) { + physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC); return &tcpdevice; + } return NULL; } @@ -179,7 +181,7 @@ tcp_Create(struct physical *p) inet_ntoa(sock.sin_addr), ntohs(sock.sin_port)); p->name.base = p->name.full; } - physical_SetupStack(p, PHYSICAL_FORCE_ASYNC); + physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC); return &tcpdevice; } } |