/* raw_cb.h 4.3 82/02/02 */
* Raw protocol interface control block. Used
* to tie a socket to the generic raw interface.
struct rawcb
*rcb_next
; /* doubly linked list */
struct socket
*rcb_socket
; /* back pointer to socket */
struct sockaddr rcb_addr
; /* destination address */
caddr_t rcb_pcb
; /* protocol specific stuff */
* Since we can't interpret canonical addresses,
* we mark an address present in the flags field.
#define RAW_ADDR 01 /* got an address */
#define sotorawcb(so) ((struct rawcb *)(so)->so_pcb)
* Nominal space allocated to a raw socket.
* Format of raw interface header prepended by
* raw_input after call from protocol specific
struct sockproto raw_protocol
; /* format of packet */
struct sockaddr raw_dst
; /* dst address for rawintr */
struct sockaddr raw_src
; /* src address for sbappendaddr */
struct rawcb rawcb
; /* head of list */