Deleted Added
full compact
tcp_usrreq.c (137139) tcp_usrreq.c (137386)
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

--- 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 * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
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

--- 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 * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
30 * $FreeBSD: head/sys/netinet/tcp_usrreq.c 137139 2004-11-02 22:22:22Z andre $
30 * $FreeBSD: head/sys/netinet/tcp_usrreq.c 137386 2004-11-08 14:44:54Z phk $
31 */
32
33#include "opt_ipsec.h"
34#include "opt_inet.h"
35#include "opt_inet6.h"
36#include "opt_tcpdebug.h"
37
38#include <sys/param.h>

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

773 }
774 m->m_len = 1;
775 *mtod(m, caddr_t) = tp->t_iobc;
776 if ((flags & MSG_PEEK) == 0)
777 tp->t_oobflags ^= (TCPOOB_HAVEDATA | TCPOOB_HADDATA);
778 COMMON_END(PRU_RCVOOB);
779}
780
31 */
32
33#include "opt_ipsec.h"
34#include "opt_inet.h"
35#include "opt_inet6.h"
36#include "opt_tcpdebug.h"
37
38#include <sys/param.h>

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

773 }
774 m->m_len = 1;
775 *mtod(m, caddr_t) = tp->t_iobc;
776 if ((flags & MSG_PEEK) == 0)
777 tp->t_oobflags ^= (TCPOOB_HAVEDATA | TCPOOB_HADDATA);
778 COMMON_END(PRU_RCVOOB);
779}
780
781/* xxx - should be const */
782struct pr_usrreqs tcp_usrreqs = {
781struct pr_usrreqs tcp_usrreqs = {
783 tcp_usr_abort, tcp_usr_accept, tcp_usr_attach, tcp_usr_bind,
784 tcp_usr_connect, pru_connect2_notsupp, in_control, tcp_usr_detach,
785 tcp_usr_disconnect, tcp_usr_listen, tcp_peeraddr, tcp_usr_rcvd,
786 tcp_usr_rcvoob, tcp_usr_send, pru_sense_null, tcp_usr_shutdown,
787 tcp_sockaddr, sosend, soreceive, sopoll, in_pcbsosetlabel
782 .pru_abort = tcp_usr_abort,
783 .pru_accept = tcp_usr_accept,
784 .pru_attach = tcp_usr_attach,
785 .pru_bind = tcp_usr_bind,
786 .pru_connect = tcp_usr_connect,
787 .pru_control = in_control,
788 .pru_detach = tcp_usr_detach,
789 .pru_disconnect = tcp_usr_disconnect,
790 .pru_listen = tcp_usr_listen,
791 .pru_peeraddr = tcp_peeraddr,
792 .pru_rcvd = tcp_usr_rcvd,
793 .pru_rcvoob = tcp_usr_rcvoob,
794 .pru_send = tcp_usr_send,
795 .pru_shutdown = tcp_usr_shutdown,
796 .pru_sockaddr = tcp_sockaddr,
797 .pru_sosetlabel = in_pcbsosetlabel
788};
789
790#ifdef INET6
791struct pr_usrreqs tcp6_usrreqs = {
798};
799
800#ifdef INET6
801struct pr_usrreqs tcp6_usrreqs = {
792 tcp_usr_abort, tcp6_usr_accept, tcp_usr_attach, tcp6_usr_bind,
793 tcp6_usr_connect, pru_connect2_notsupp, in6_control, tcp_usr_detach,
794 tcp_usr_disconnect, tcp6_usr_listen, in6_mapped_peeraddr, tcp_usr_rcvd,
795 tcp_usr_rcvoob, tcp_usr_send, pru_sense_null, tcp_usr_shutdown,
796 in6_mapped_sockaddr, sosend, soreceive, sopoll, in_pcbsosetlabel
802 .pru_abort = tcp_usr_abort,
803 .pru_accept = tcp6_usr_accept,
804 .pru_attach = tcp_usr_attach,
805 .pru_bind = tcp6_usr_bind,
806 .pru_connect = tcp6_usr_connect,
807 .pru_control = in6_control,
808 .pru_detach = tcp_usr_detach,
809 .pru_disconnect = tcp_usr_disconnect,
810 .pru_listen = tcp6_usr_listen,
811 .pru_peeraddr = in6_mapped_peeraddr,
812 .pru_rcvd = tcp_usr_rcvd,
813 .pru_rcvoob = tcp_usr_rcvoob,
814 .pru_send = tcp_usr_send,
815 .pru_shutdown = tcp_usr_shutdown,
816 .pru_sockaddr = in6_mapped_sockaddr,
817 .pru_sosetlabel = in_pcbsosetlabel
797};
798#endif /* INET6 */
799
800/*
801 * Common subroutine to open a TCP connection to remote host specified
802 * by struct sockaddr_in in mbuf *nam. Call in_pcbbind to assign a local
803 * port number if needed. Call in_pcbconnect_setup to do the routing and
804 * to choose a local host address (interface). If there is an existing

--- 397 unchanged lines hidden ---
818};
819#endif /* INET6 */
820
821/*
822 * Common subroutine to open a TCP connection to remote host specified
823 * by struct sockaddr_in in mbuf *nam. Call in_pcbbind to assign a local
824 * port number if needed. Call in_pcbconnect_setup to do the routing and
825 * to choose a local host address (interface). If there is an existing

--- 397 unchanged lines hidden ---