Deleted Added
full compact
in_pcb.h (122322) in_pcb.h (122875)
1/*
2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93
34 * $FreeBSD: head/sys/netinet/in_pcb.h 122322 2003-11-08 22:48:27Z sam $
34 * $FreeBSD: head/sys/netinet/in_pcb.h 122875 2003-11-18 00:39:07Z rwatson $
35 */
36
37#ifndef _NETINET_IN_PCB_H_
38#define _NETINET_IN_PCB_H_
39
40#include <sys/queue.h>
41#include <sys/_lock.h>
42#include <sys/_mutex.h>

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

129
130 /* local and foreign ports, local and foreign addr */
131 struct in_conninfo inp_inc;
132
133 caddr_t inp_ppcb; /* pointer to per-protocol pcb */
134 struct inpcbinfo *inp_pcbinfo; /* PCB list info */
135 struct socket *inp_socket; /* back pointer to socket */
136 /* list for this PCB's local port */
35 */
36
37#ifndef _NETINET_IN_PCB_H_
38#define _NETINET_IN_PCB_H_
39
40#include <sys/queue.h>
41#include <sys/_lock.h>
42#include <sys/_mutex.h>

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

129
130 /* local and foreign ports, local and foreign addr */
131 struct in_conninfo inp_inc;
132
133 caddr_t inp_ppcb; /* pointer to per-protocol pcb */
134 struct inpcbinfo *inp_pcbinfo; /* PCB list info */
135 struct socket *inp_socket; /* back pointer to socket */
136 /* list for this PCB's local port */
137 struct label *inp_label; /* MAC label */
137 int inp_flags; /* generic IP/datagram flags */
138
139 struct inpcbpolicy *inp_sp; /* for IPSEC */
140 u_char inp_vflag; /* IP version flag (v4/v6) */
141#define INP_IPV4 0x1
142#define INP_IPV6 0x2
143#define INP_IPV6PROTO 0x4 /* opened under IPv6 protocol */
144#define INP_TIMEWAIT 0x8 /* .. probably doesn't go here */

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

364 in_pcblookup_local(struct inpcbinfo *,
365 struct in_addr, u_int, int);
366struct inpcb *
367 in_pcblookup_hash(struct inpcbinfo *, struct in_addr, u_int,
368 struct in_addr, u_int, int, struct ifnet *);
369void in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr,
370 int, struct inpcb *(*)(struct inpcb *, int));
371void in_pcbrehash(struct inpcb *);
138 int inp_flags; /* generic IP/datagram flags */
139
140 struct inpcbpolicy *inp_sp; /* for IPSEC */
141 u_char inp_vflag; /* IP version flag (v4/v6) */
142#define INP_IPV4 0x1
143#define INP_IPV6 0x2
144#define INP_IPV6PROTO 0x4 /* opened under IPv6 protocol */
145#define INP_TIMEWAIT 0x8 /* .. probably doesn't go here */

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

365 in_pcblookup_local(struct inpcbinfo *,
366 struct in_addr, u_int, int);
367struct inpcb *
368 in_pcblookup_hash(struct inpcbinfo *, struct in_addr, u_int,
369 struct in_addr, u_int, int, struct ifnet *);
370void in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr,
371 int, struct inpcb *(*)(struct inpcb *, int));
372void in_pcbrehash(struct inpcb *);
373void in_pcbsetsolabel(struct socket *so);
372int in_setpeeraddr(struct socket *so, struct sockaddr **nam, struct inpcbinfo *pcbinfo);
373int in_setsockaddr(struct socket *so, struct sockaddr **nam, struct inpcbinfo *pcbinfo);;
374struct sockaddr *
375 in_sockaddr(in_port_t port, struct in_addr *addr);
374int in_setpeeraddr(struct socket *so, struct sockaddr **nam, struct inpcbinfo *pcbinfo);
375int in_setsockaddr(struct socket *so, struct sockaddr **nam, struct inpcbinfo *pcbinfo);;
376struct sockaddr *
377 in_sockaddr(in_port_t port, struct in_addr *addr);
378void in_pcbsosetlabel(struct socket *so);
376void in_pcbremlists(struct inpcb *inp);
377int prison_xinpcb(struct thread *td, struct inpcb *inp);
378#endif /* _KERNEL */
379
380#endif /* !_NETINET_IN_PCB_H_ */
379void in_pcbremlists(struct inpcb *inp);
380int prison_xinpcb(struct thread *td, struct inpcb *inp);
381#endif /* _KERNEL */
382
383#endif /* !_NETINET_IN_PCB_H_ */