if_loop.c (122498) | if_loop.c (122922) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if_loop.c 8.2 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if_loop.c 8.2 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/net/if_loop.c 122498 2003-11-11 17:58:36Z silby $ | 34 * $FreeBSD: head/sys/net/if_loop.c 122922 2003-11-20 20:07:39Z andre $ |
35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40 41#include "opt_atalk.h" 42#include "opt_inet.h" --- 281 unchanged lines hidden (view full) --- 324/* ARGSUSED */ 325static void 326lortrequest(cmd, rt, info) 327 int cmd; 328 struct rtentry *rt; 329 struct rt_addrinfo *info; 330{ 331 RT_LOCK_ASSERT(rt); | 35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40 41#include "opt_atalk.h" 42#include "opt_inet.h" --- 281 unchanged lines hidden (view full) --- 324/* ARGSUSED */ 325static void 326lortrequest(cmd, rt, info) 327 int cmd; 328 struct rtentry *rt; 329 struct rt_addrinfo *info; 330{ 331 RT_LOCK_ASSERT(rt); |
332 333 if (rt) { 334 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; /* for ISO */ 335 /* 336 * For optimal performance, the send and receive buffers 337 * should be at least twice the MTU plus a little more for 338 * overhead. 339 */ 340 rt->rt_rmx.rmx_recvpipe = 341 rt->rt_rmx.rmx_sendpipe = 3 * LOMTU; 342 } | 332 if (rt) 333 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; |
343} 344 345/* 346 * Process an ioctl request. 347 */ 348/* ARGSUSED */ 349int 350loioctl(ifp, cmd, data) --- 54 unchanged lines hidden --- | 334} 335 336/* 337 * Process an ioctl request. 338 */ 339/* ARGSUSED */ 340int 341loioctl(ifp, cmd, data) --- 54 unchanged lines hidden --- |