DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦bf3a9077d⟧ TextFile

    Length: 2187 (0x88b)
    Types: TextFile
    Notes: UNIX file
    Names: »tcp.h«

Derivation

└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2
└─⟦8c4f54e61⟧ UNIX Filesystem
    └─⟦this⟧ »hb/new/usr/include/sys/tcp.h« 

TextFile

/*
 * TCP streams module specific declarations
 */
#ident "@(#)tcp.h	1.3 - 88/08/15"

#define TCPMAXPKT		(-1)
#define TCPHIWAT		(8192)
#define TCPLOWAT		(2048) /* default window */

struct tcpdev {
   queue_t *tcpd_qptr;		/* pointer to queue associated with this stream */
   ulong    tcpd_state;		/* state of device */
   ulong    tcpd_flags;		/* other necessary flags */
   ulong    tcpd_nsap;		/* nsap value bound to */
   uint	    tcpd_ioctl;		/* ioctl id for pass through ioctl's */
   struct socket *tcpd_socket;	/* pointer to socket var */
   mblk_t  *tcpd_sp;		/* points to socket mblk_t */
   int	    tcpd_conreq;	/* number of pending connect requests */
};

/* flags */
#define TCPF_SU		0x0001	/* opened by root - can use restricted options*/
#define TCPF_IOCTLWAT	0x0002	/* waiting for ioctl */
#define TCPF_CLOSEWAT	0x0004	/* waiting for close protocol to finish */

#define TCP_ADDR_SIZE	sizeof(struct sockaddr)	/* addresses passed in this form */

/* lower queue structure */
struct tcpldev {
   queue_t *tcpl_qptr;		/* pointer to lower queue */
   ulong    tcpl_index;		/* index from link */
};

/* TCP module statistics */

struct tcpmodstats {
   long		tcps_nosr;	/* number of ENOSR events */
};

#define TCPDEB_MOD	0x0001
#define TCPDEB_INPUT	0x0002
#define TCPDEB_IN	0x0004
#define TCPDEB_ROUTE	0x0008

extern tcpdebug;

#define TCPDEBUG		if(tcpdebug)printf
#define TCPDEBUG1	if(tcpdebug&TCPDEB_MOD)printf
#define TCPDEBUG2	if(tcpdebug&TCPDEB_INPUT)printf
#define TCPDEBUG3	if(tcpdebug&TCPDEB_IN)printf
#define TCPDEBUG4	if(tcpdebug&TCPDEB_ROUTE)printf

  /* TCP module specific options */
  /* as opposed to those used per datagram */

#define TCPMODOPT_CHECKSUM	1
#define TCPMODOPT_SECURITY	2
#define TCPMODOPT_DEBUG		3

struct tcpmod_opt {
   int	tcpo_type;
   union tcpmodvalues {
      int	tcpv_int;
      int	tcpv_long;
   }    tcpo_value;
};

/* error value manipulation */

#define UNIX_ERR(err) ((err>>16)&0xffff)
#define TPI_ERR(err)  (err&0xffff)
#define RET_ERR(uerr, terr) ((uerr&0xffff)<<16 | terr&0xffff)

#define HIGHPRI	0x8000		/* high priority error */

/* interface constants/defaults */

#define TCP_MAXEXDATA	1	/* maximum expedited data length */