📄 dli_data.c
字号:
#ifndef lintstatic char *sccsid = "@(#)dli_data.c 4.2 ULTRIX 9/4/90";#endif lint/* * Program dli_data.c, Module DLI * * Copyright (C) 1985 by * Digital Equipment Corporation, Maynard, Mass. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by Digital Equipment * Corporation. * * Digital assumes no responsibility for the use or reliability of its * software on equipment which is not supplied by Digital. * * * Networks & Communications Software Engineering * * IDENT HISTORY: * * 1.00 10-Jul-1985 * DECnet-ULTRIX V1.0 * * 2.00 18-Apr-1986 * DECnet-Ultrix V2.0 * * Added sysid and point-to-point support * */#include "../../h/param.h"#include "../../h/systm.h"#include "../../h/mbuf.h"#include "../../h/protosw.h"#include "../../h/socket.h"#include "../../h/socketvar.h"#include "../../h/errno.h"#include "../../h/smp_lock.h"#include "../../h/cpudata.h"#include "../../net/net/if.h"#include "../../net/netinet/in.h"#include "../../net/netinet/if_ether.h"#include "../../net/netdnet/dli_var.h"/* general dli data */struct ether_header no_enet_header; /* Empty Ethernet header */struct ifqueue dli_intrq; /* input packet queue *//* MOP loopback data */struct dli_timers lback_timers[DLI_MAX_LBTIMR]; /* loopback evl timers */u_char loopback_mcast[] = LBACKMCAST; /* mcast addr for loopback protocol *//* MOP sysid data */u_short nqna; /* number of qna's */struct sockaddr_dl sysid_dst; /* destination info */u_char sysid_mcast[] = SYSIDMCAST; /* mcast addr for sysid */struct ether_pa *sysid_haddr_p; /* pointer to hw addr in sysid msg */u_char sysid_msg[SYSID_MSGL]; /* sysid buffer */struct dli_sysid_to sysid_to[MAXQNAS]; /* time out structs */u_char *sysid_devtyp_p = 0; /* ptr to dev type in sysid message */struct dli_sysid_dev sysid_dev[] = { /* devices needing sysid support */ { "qe", QNA }, { "ln", SVA }, { "ni", BNA }, { "", 0 }, /* extra space */ { "", 0 }, /* extra space */ { "", 0 }, /* extra space */ { "", 0 } /* list terminator */};struct dli_sysid_dev mop_dev_code[] = { /* MOP code for each device */ { "xna", SVA }, { "lqe", LQA }, { "de", UNA }, { "qe", QNA }, { "ln", SVA }, { "ni", BNA }, { "", 0 }, /* extra space */ { "", 0 }, /* extra space */ { "", 0 }, /* extra space */ { "", 0 } /* list terminator */};/* 802.3 data */struct if_isapt if_isapt[MAX_BROADCSTDEV]; /* isap struct per device */struct lock_t lk_dli; /* protocol lock */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -