if_loop.c (236170) | if_loop.c (236332) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)if_loop.c 8.2 (Berkeley) 1/9/95 |
30 * $FreeBSD: head/sys/net/if_loop.c 236170 2012-05-28 09:30:13Z bz $ | 30 * $FreeBSD: head/sys/net/if_loop.c 236332 2012-05-30 20:56:07Z tuexen $ |
31 */ 32 33/* 34 * Loopback interface driver for protocol testing and timing. 35 */ 36 37#include "opt_atalk.h" 38#include "opt_inet.h" --- 48 unchanged lines hidden (view full) --- 87#define LOMTU (1024+512) 88#elif defined(LARGE_LOMTU) 89#define LOMTU 131072 90#else 91#define LOMTU 16384 92#endif 93 94#define LO_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP | CSUM_SCTP) | 31 */ 32 33/* 34 * Loopback interface driver for protocol testing and timing. 35 */ 36 37#include "opt_atalk.h" 38#include "opt_inet.h" --- 48 unchanged lines hidden (view full) --- 87#define LOMTU (1024+512) 88#elif defined(LARGE_LOMTU) 89#define LOMTU 131072 90#else 91#define LOMTU 16384 92#endif 93 94#define LO_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP | CSUM_SCTP) |
95#define LO_CSUM_FEATURES6 (CSUM_TCP_IPV6 | CSUM_UDP_IPV6 | CSUM_SCTP) | 95#define LO_CSUM_FEATURES6 (CSUM_TCP_IPV6 | CSUM_UDP_IPV6 | CSUM_SCTP_IPV6) |
96#define LO_CSUM_SET (CSUM_DATA_VALID | CSUM_DATA_VALID_IPV6 | \ 97 CSUM_PSEUDO_HDR | \ 98 CSUM_IP_CHECKED | CSUM_IP_VALID | \ 99 CSUM_SCTP_VALID) 100 101int loioctl(struct ifnet *, u_long, caddr_t); 102static void lortrequest(int, struct rtentry *, struct rt_addrinfo *); 103int looutput(struct ifnet *ifp, struct mbuf *m, --- 361 unchanged lines hidden --- | 96#define LO_CSUM_SET (CSUM_DATA_VALID | CSUM_DATA_VALID_IPV6 | \ 97 CSUM_PSEUDO_HDR | \ 98 CSUM_IP_CHECKED | CSUM_IP_VALID | \ 99 CSUM_SCTP_VALID) 100 101int loioctl(struct ifnet *, u_long, caddr_t); 102static void lortrequest(int, struct rtentry *, struct rt_addrinfo *); 103int looutput(struct ifnet *ifp, struct mbuf *m, --- 361 unchanged lines hidden --- |