1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that this notice is preserved and that due credit is given
7: * to the University of California at Berkeley. The name of the University
8: * may not be used to endorse or promote products derived from this
9: * software without specific prior written permission. This software
10: * is provided ``as is'' without express or implied warranty.
11: *
12: * @(#)in_pcb.h 7.2 (Berkeley) 12/7/87
13: */
14:
15: /*
16: * Common structure pcb for internet protocol implementation.
17: * Here are stored pointers to local and foreign host table
18: * entries, local and foreign socket numbers, and pointers
19: * up (to a socket structure) and down (to a protocol-specific)
20: * control block.
21: */
22: struct inpcb {
23: struct inpcb *inp_next,*inp_prev;
24: /* pointers to other pcb's */
25: struct inpcb *inp_head; /* pointer back to chain of inpcb's
26: for this protocol */
27: struct in_addr inp_faddr; /* foreign host table entry */
28: u_short inp_fport; /* foreign port */
29: struct in_addr inp_laddr; /* local host table entry */
30: u_short inp_lport; /* local port */
31: struct socket *inp_socket; /* back pointer to socket */
32: caddr_t inp_ppcb; /* pointer to per-protocol pcb */
33: struct route inp_route; /* placeholder for routing entry */
34: struct mbuf *inp_options; /* IP options */
35: };
36:
37: #define INPLOOKUP_WILDCARD 1
38: #define INPLOOKUP_SETLOCAL 2
39:
40: #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
41:
42: #ifdef SUPERVISOR
43: struct inpcb *in_pcblookup();
44: #endif
Defined struct's
inpcb
defined in line
22; used 154 times
- in line 23-25(4),
43(2)
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line
58(2),
157(2),
163(2),
177(2),
224(2)
- in /usr/src/new/crash/dispnet.c line
497(2),
875(2)
- in /usr/src/new/crash/inet.c line
58-59(4),
69-78(10),
84-89(6)
- in /usr/src/sys/netinet/in_pcb.c line
36-44(6),
53-57(4),
116(2),
215(2),
225(2),
240(2),
254(2),
279(2),
285(2),
335(2),
356(2),
368-375(6)
- in /usr/src/sys/netinet/ip_output.c line
347(2)
- in /usr/src/sys/netinet/tcp_input.c line
182(2),
321(2),
1261(2)
- in /usr/src/sys/netinet/tcp_subr.c line
60(2),
168(2),
229(2),
252(2),
278(2),
315(2)
- in /usr/src/sys/netinet/tcp_timer.c line
48(2),
72(2)
- in /usr/src/sys/netinet/tcp_usrreq.c line
58(2),
328(2),
391(2)
- in /usr/src/sys/netinet/udp_usrreq.c line
36(2),
61(2),
165(2),
194(2),
288(2),
414(2)
- in /usr/src/ucb/PORT/systat/netcmds.c line
172(2),
235(2)
- in /usr/src/ucb/PORT/systat/netstat.c line
121-123(4),
141-143(6),
178(2)
- in /usr/src/ucb/netstat/inet.c line
49(2),
75-76(4),
84-89(8)
- in /usr/src/usr.bin/fstat/fstat.c line
421(2),
510-515(6)
Defined macros
Usage of this include