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

⟦a712e51d2⟧ TextFile

    Length: 1853 (0x73d)
    Types: TextFile
    Notes: UNIX file
    Names: »ip.h«

Derivation

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

TextFile

/*
 * IP streams module specific declarations
 */
#ident "@(#)ip.h	1.3 - 88/06/25"

#define IPMAXPKT	(8*1024)
#define IPHIWAT		(32*1024)
#define IPLOWAT		(8*1024)

struct ipdev {
   queue_t *ipd_qptr;		/* pointer to queue associated with this stream */
   ulong    ipd_state;		/* state of device */
   ulong    ipd_flags;		/* other necessary flags */
   ulong    ipd_nsap;		/* nsap value bound to */
   uint	    ipd_ioctl;		/* ioctl id for pass through ioctl's */
};

/* flags */
#define IPF_NOHEADER	0x0001	/* don't send IP header up stream */
#define IPF_IOCTLWAT	0x0002	/* waiting for ioctl */

#define INET_ADDR_LEN sizeof(struct sockaddr_in)
#define INET_NSAP_LEN 1
#define INET_TPIADDR_LEN (INET_ADDR_LEN+INET_NSAP_LEN)
struct ip_dl_addr {
   struct in_addr ida_addr;
   char	  ida_proto;
};

#define NSAP_WILDCARD 0xffff	/* can't be from upstream */

/* IP module statistics */

struct ipmodstats {
   long		ips_nosr;	/* number of ENOSR events */
   long		ips_flowup;	/* number of flow control drops upstream */
   long		ips_flowdown;	/* number of flow control drops downstream */
   long		ips_badmsg;	/* number of bad control messages dropped */
   long		ips_nouser;	/* number of messages without a bound stream */
};

#define IPDEB_MOD	0x0001
#define IPDEB_INPUT	0x0002
#define IPDEB_IN	0x0004
#define IPDEB_ROUTE	0x0008

extern ipdebug;

#define IPDEBUG		if(ipdebug)printf
#define IPDEBUG1	if(ipdebug&IPDEB_MOD)printf
#define IPDEBUG2	if(ipdebug&IPDEB_INPUT)printf
#define IPDEBUG3	if(ipdebug&IPDEB_IN)printf
#define IPDEBUG4	if(ipdebug&IPDEB_ROUTE)printf

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

#define IPMODOPT_CHECKSUM	1
#define IPMODOPT_SECURITY	2
#define IPMODOPT_DEBUG		3

struct ipmod_opt {
   int	ipo_type;
   union ipmodvalues {
      int	ipv_int;
      int	ipv_long;
   }    ipo_value;
};