Deleted Added
full compact
ip_divert.c (169461) ip_divert.c (169462)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 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

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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 *
1/*-
2 * Copyright (c) 1982, 1986, 1988, 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

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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 * $FreeBSD: head/sys/netinet/ip_divert.c 169461 2007-05-11 09:54:53Z rwatson $
29 * $FreeBSD: head/sys/netinet/ip_divert.c 169462 2007-05-11 10:20:51Z rwatson $
30 */
31
32#if !defined(KLD_MODULE)
33#include "opt_inet.h"
34#include "opt_ipfw.h"
35#include "opt_mac.h"
36#ifndef INET
37#error "IPDIVERT requires INET."

--- 592 unchanged lines hidden (view full) ---

630 div_pcblist, "S,xinpcb", "List of active divert sockets");
631#endif
632
633struct pr_usrreqs div_usrreqs = {
634 .pru_attach = div_attach,
635 .pru_bind = div_bind,
636 .pru_control = in_control,
637 .pru_detach = div_detach,
30 */
31
32#if !defined(KLD_MODULE)
33#include "opt_inet.h"
34#include "opt_ipfw.h"
35#include "opt_mac.h"
36#ifndef INET
37#error "IPDIVERT requires INET."

--- 592 unchanged lines hidden (view full) ---

630 div_pcblist, "S,xinpcb", "List of active divert sockets");
631#endif
632
633struct pr_usrreqs div_usrreqs = {
634 .pru_attach = div_attach,
635 .pru_bind = div_bind,
636 .pru_control = in_control,
637 .pru_detach = div_detach,
638 .pru_peeraddr = in_setpeeraddr,
638 .pru_peeraddr = in_getpeeraddr,
639 .pru_send = div_send,
640 .pru_shutdown = div_shutdown,
639 .pru_send = div_send,
640 .pru_shutdown = div_shutdown,
641 .pru_sockaddr = in_setsockaddr,
641 .pru_sockaddr = in_getsockaddr,
642 .pru_sosetlabel = in_pcbsosetlabel
643};
644
645struct protosw div_protosw = {
646 .pr_type = SOCK_RAW,
647 .pr_protocol = IPPROTO_DIVERT,
648 .pr_flags = PR_ATOMIC|PR_ADDR,
649 .pr_input = div_input,

--- 71 unchanged lines hidden ---
642 .pru_sosetlabel = in_pcbsosetlabel
643};
644
645struct protosw div_protosw = {
646 .pr_type = SOCK_RAW,
647 .pr_protocol = IPPROTO_DIVERT,
648 .pr_flags = PR_ATOMIC|PR_ADDR,
649 .pr_input = div_input,

--- 71 unchanged lines hidden ---