⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data.h

📁 mcf5307实验源代码
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*   Copyright (c) 1993 - 1996 by Accelerated Technology, Inc.           */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/
/*
*
* Portions of this program were written by:       */
/***************************************************************************
*                                                                          *
*                                                                          *
*      NCSA Telnet                                                         *
*      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
*                                                                          *
*      National Center for Supercomputing Applications                     *
*      152 Computing Applications Building                                 *
*      605 E. Springfield Ave.                                             *
*      Champaign, IL  61820                                                *
****************************************************************************
*/
/******************************************************************************/
/*                                                                            */
/* FILE NAME                                            VERSION               */
/*                                                                            */
/*   DATA.H                                             NET 3.2               */
/*                                                                            */
/* DESCRIPTION                                                                */
/*                                                                            */
/*   External definitions of global variables used by Nucleus NET.            */
/*                                                                            */
/* AUTHOR                                                                     */
/*                                                                            */
/*                                                                            */
/*                                                                            */
/* DATA STRUCTURES                                                            */
/*                                                                            */
/*                                                                            */
/* FUNCTIONS                                                                  */
/*                                                                            */
/*      None                                                                  */
/*                                                                            */
/* DEPENDENCIES                                                               */
/*                                                                            */
/*      None                                                                  */
/*                                                                            */
/* HISTORY                                                                    */
/*                                                                            */
/*      NAME            DATE                    REMARKS                       */
/*                                                                            */
/******************************************************************************/

#ifndef DATA_H
#define DATA_H

#include "target.h"

/*  The following externs are defined in file TCPVARS.C.  */

extern uchar nnmyaddr [DADDLEN];   /*  my ethernet hardware address */
extern const uchar broadaddr [DADDLEN];  /*  the broadcast address */
extern const uchar broadip [4];
extern const uchar nullip[4];            /* NULL IP address.  */
extern uchar nnipnum [4];
extern uchar nnicmpsave [4];       /*  address for icmp redirect */
extern uchar nnicmpnew [4];        /*  new gateway from icmp redirect */
extern uchar nnmask [4];
extern const uchar nnamask [4];
extern const uchar nnbmask [4];
extern const uchar nncmask [4];
extern int16 nnipident;                    /*  ident field of ip */
extern const uint16 nncredit;
extern const int16  nnsegsize;                /* maximum segment size */
extern uint16 Buffers_Used;
extern int16 tasks_waiting_to_send;

extern struct tqhdr tcptimer_freelist;
extern struct tqhdr tcp_timerlist;

extern struct pqueue_hdr buffer_list;
extern struct pqueue_hdr buffer_freelist;
extern struct pqueue_hdr odh_list;
extern struct transq_hdr trans_list;
extern struct transq_hdr trans_freelist;

extern struct config Scon;

extern struct port *portlist [NPORTS];     /* allocate like iobuffers in UNIX */
extern struct uport *uportlist [NUPORTS];  /* allocate like iobuffers in UNIX */
extern struct uport ulist;                 /* buffer for UDP */
extern struct pseudotcp tcps;              /* for checksums */
extern struct acache arpc [CACHELEN];      /* cache for hardware addresses */
extern ARPKT arp;
extern DLAYER blankd;
extern IPKT blankip;
extern struct host hostTable[];

#ifdef INTERRUPT
   extern int16 NU_Vect_Number;
#endif /* INTERRUPT */

#endif  /* DATA_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -