tcp.c (100334) | tcp.c (134789) |
---|---|
1/*- 2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/ppp/tcp.c 100334 2002-07-18 18:50:05Z brian $ | 26 * $FreeBSD: head/usr.sbin/ppp/tcp.c 134789 2004-09-05 01:46:52Z brian $ |
27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <netinet/in.h> 32#include <arpa/inet.h> 33#include <netdb.h> 34 --- 79 unchanged lines hidden (view full) --- 114 NULL, 115 NULL, 116 NULL, 117 NULL 118}; 119 120struct device * 121tcp_iov2device(int type, struct physical *p, struct iovec *iov, | 27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <netinet/in.h> 32#include <arpa/inet.h> 33#include <netdb.h> 34 --- 79 unchanged lines hidden (view full) --- 114 NULL, 115 NULL, 116 NULL, 117 NULL 118}; 119 120struct device * 121tcp_iov2device(int type, struct physical *p, struct iovec *iov, |
122 int *niov, int maxiov, int *auxfd, int *nauxfd) | 122 int *niov, int maxiov __unused, int *auxfd __unused, 123 int *nauxfd __unused) |
123{ 124 if (type == TCP_DEVICE) { 125 free(iov[(*niov)++].iov_base); 126 physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC); 127 return &tcpdevice; 128 } 129 130 return NULL; --- 81 unchanged lines hidden --- | 124{ 125 if (type == TCP_DEVICE) { 126 free(iov[(*niov)++].iov_base); 127 physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC); 128 return &tcpdevice; 129 } 130 131 return NULL; --- 81 unchanged lines hidden --- |