DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

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

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T p

⟦563dbef2f⟧ TextFile

    Length: 1295 (0x50f)
    Types: TextFile
    Names: »pbuf.h«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦3b20aab50⟧ »EurOpenD3/network/snmp/kip-snmp.91.tar.Z« 
        └─⟦b503a39fe⟧ 
            └─⟦this⟧ »kip/fp/pbuf.h« 
            └─⟦this⟧ »kip/fp3.0/pbuf.h« 

TextFile

/*
**	Copyright (C) 1987 Kinetics, Inc.  All Rights Reserved.
**	This program contains proprietary confidential information
**	and trade secrets of Kinetics, Inc.  Reverse engineering
**	of object code is prohibited.  Use of copyright notice
**	is precautionary and does not imply publication.
**
**	pbuf.h - Constants and structures related to memory allocation
**
*/

#define	MAXHEAD		128		/* max space for header */
#define	MAXDATA		630		/* max space for data */

struct pbuf {
	struct	pbuf *p_next;		/* next buffer in queue */
	unsigned char	*p_off;		/* offset of data */
	short	p_len;			/* amount of data in this pbuf */
	short	p_type;			/* pbuf type (0 == free) */
	unsigned char	p_head[MAXHEAD];	/* header storage */
	unsigned char	p_data[MAXDATA];	/* data storage */
};
/* WARNING: assembler constants in lap.s use this pbuf structure */

/* pbuf types (p_type) */
#define	PT_FREE		0	/* should be on free list */
#define	PT_ABUS		1	/* received AppleTalk packet */
#define	PT_ENET		2	/* received Ethernet packet */
#define	PT_ARP		3	/* ARP packet */
#define	PT_DATA		4	/* general data */
#define	PT_ERBF		5	/* awaiting Ethernet receive packet */
#define	PT_ETBF		6	/* awaiting Ethernet transmit complete */

struct pqueue {
	struct pbuf *pq_head;
	struct pbuf *pq_tail;
	short	pq_len;
};