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

⟦a2016df12⟧ TextFile

    Length: 2480 (0x9b0)
    Types: TextFile
    Notes: UNIX file
    Names: »udp.h«

Derivation

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

TextFile


/*
 *      Copyrighted as an unpublished work.
 *      (c) Copyright 1988 INTERACTIVE Systems Corporation
 *      All rights reserved.
 *
 *      RESTRICTED RIGHTS:
 *
 *      These programs are supplied under a license.  They may be used,
 *      disclosed, and/or copied only as permitted under such license
 *      agreement.  Any copy must contain the above copyright notice and
 *      this restricted rights notice.  Use, copying, and/or disclosure
 *      of the programs is strictly prohibited unless otherwise provided
 *      in the license agreement.
 *
 * UDP streams module specific declarations
 */

#ident "@(#)udp.h	1.4 - 89/01/13"

#ifndef _h_SYSUDP
#define _h_SYSUDP

#define UDPMAXPKT	(9*1024)	/* Restricted to 9k packets */
#define UDPHIWAT	(4*UDPMAXPKT)
#define UDPLOWAT	(1024)
#define TSAP_WILDCARD   0xff

/* udp options - these flags are internal to udp */
#define UDP_BROADCAST	0x001		/* broadcasts are permitted */
#define UDP_SATID	0x002		/* satnet id */
#define UDP_REUSEADDR	0x004		/* reuse address */
#define UDP_DONTROUTE	0x010		/* bypass routing tables - 0x10 */
#define UDP_IPOPTS	0x020		/* ip options */
#define UDP_SECURITY	0X040		/* security option */
#define UDP_SERVICE	0x080		/* type-of-service options */
#define UDP_FRAGMENT	0x100		/* ip fragmenting */
#define UDP_SRCROUTE	0x200		/* source routing */
#define UDP_RR		0x400		/* record route */
#define UDP_TS		0x800		/* time stamp */

#ifdef COMPAT_42
#define compat_42 1
#else
#define compat_42 0
#endif

/* udp device struct for upper multiplexing */
struct udpdev {
	queue_t  *udp_qptr;	/* ptr to queue associated with this stream */
	ulong     udp_state;	/* device state */
	ulong     udp_flags;    /* device options */
	struct inpcb *udp_inpcb;	/* ptr to inpcb associated with this queue */
	mblk_t	 *udp_opts;	/* ptr to options mblk associated with this queue */
	short     udp_soflags;  /* socket option flag */
	u_short	  udp_uid;	/* user's id */
	uint	  udp_ioctl;	/* id of ioctl sent down stream */
};

#define INET_NSAP_LEN	1

#define qtoudpinpcb(q)	((struct inpcb *)(((struct udpdev *)((q)->q_ptr))->udp_inpcb))

/* operations on queue state */
#define getstate(udp)	      ((udp)->udp_state)
#define setstate(udp, state)  ((udp)->udp_state = (state))

/* number of driver originated primitives and udp states */
#define UDP_REQ_NUM 5
#define UDP_STATE_NUM 5

/* for debug */
extern udpdebug;
#define UDPDEBUG if(udpdebug)printf

/* udp flags */
#define UDP_FIOCTL 0x1

#endif