Commit | Line | Data |
---|---|---|
cb1c44c2 | 1 | /* |
1810611d | 2 | * Copyright (c) 1980, 1986 Regents of the University of California. |
5b519e94 | 3 | * All rights reserved. |
cb1c44c2 | 4 | * |
dbf0c423 | 5 | * %sccs.include.redist.c% |
5b519e94 | 6 | * |
dbf0c423 | 7 | * @(#)raw_cb.h 7.6 (Berkeley) %G% |
cb1c44c2 | 8 | */ |
16287509 BJ |
9 | |
10 | /* | |
11 | * Raw protocol interface control block. Used | |
12 | * to tie a socket to the generic raw interface. | |
13 | */ | |
14 | struct rawcb { | |
15 | struct rawcb *rcb_next; /* doubly linked list */ | |
16 | struct rawcb *rcb_prev; | |
17 | struct socket *rcb_socket; /* back pointer to socket */ | |
b72a6efb KS |
18 | struct sockaddr *rcb_faddr; /* destination address */ |
19 | struct sockaddr *rcb_laddr; /* socket's address */ | |
829f867e | 20 | struct sockproto rcb_proto; /* protocol family, protocol */ |
16287509 BJ |
21 | }; |
22 | ||
16287509 BJ |
23 | #define sotorawcb(so) ((struct rawcb *)(so)->so_pcb) |
24 | ||
25 | /* | |
26 | * Nominal space allocated to a raw socket. | |
27 | */ | |
07ff9218 MK |
28 | #define RAWSNDQ 8192 |
29 | #define RAWRCVQ 8192 | |
16287509 | 30 | |
16287509 BJ |
31 | #ifdef KERNEL |
32 | struct rawcb rawcb; /* head of list */ | |
33 | #endif |