* Copyright (c) 1982 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)ns_pcb.h 6.4 (Berkeley) %G%
* Ns protocol interface control block.
struct nspcb
*nsp_next
; /* doubly linked list */
struct socket
*nsp_socket
; /* back pointer to socket */
struct ns_addr nsp_faddr
; /* destination address */
struct ns_addr nsp_laddr
; /* socket's address */
caddr_t nsp_pcb
; /* protocol specific stuff */
struct route nsp_route
; /* routing information */
struct ns_addr nsp_lastdst
; /* validate cached route for dg socks*/
long nsp_notify_param
; /* extra info passed via ns_pcbnotify*/
u_char nsp_dpt
; /* default packet type for idp_output*/
u_char nsp_rpt
; /* last received packet type by
#define NSP_IN_ABORT 0x1 /* calling abort through socket */
#define NSP_RAWIN 0x2 /* show headers on input */
#define NSP_RAWOUT 0x4 /* show header on output */
#define NSP_ALL_PACKETS 0x8 /* Turn off higher proto processing */
#define nsp_lport nsp_laddr.x_port
#define nsp_fport nsp_faddr.x_port
#define sotonspcb(so) ((struct nspcb *)((so)->so_pcb))
* Nominal space allocated to a ns socket.
extern struct nspcb nspcb
; /* head of list */
extern struct nspcb
*ns_pcblookup();