📄 rpdu.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Name: Fusion 6.52 Fusion 6.51 $* $Date: 2001/09/20 10:32:06 $* $Source: M:/psisrc/routing/incl/rcs/rpdu.h $* $Revision: 1.5 $************************************************************************** File Description: RIP packet definitions *************************************************************************/#define RIP_HLEN 4typedef struct rip_pdu{ byte rp_cmd; /* command */ byte rp_ver; /* version */ byte rp_rd1; /* domain */ byte rp_rd0; /* domain */}RPDU, *rpdu_pt;/* commands */#define RIP_CMD_REQ 1 /* request */#define RIP_CMD_RSP 2 /* response *//* version */#define RIP_VERSION 1/* address families */#define RIP_AFI_IP 2 /* IP address */#define RIP_AFI_AUTH 0xffff/* rripa address option */#define RIP_OPT_LEN 20#define ROPT_FWD(opt) (ripa_pt)( (byte *)opt + RIP_OPT_LEN )typedef struct rip_ipadd_opt{ byte ra_afi1; /* address family */ byte ra_afi0; byte ra_tag1; /* route tag */ byte ra_tag0; byte ra_ipa3; /* ip address */ byte ra_ipa2; byte ra_ipa1; byte ra_ipa0; byte ra_msk3; /* subnet mask */ byte ra_msk2; byte ra_msk1; byte ra_msk0; byte ra_nh3; /*sugg next hop */ byte ra_nh2; byte ra_nh1; byte ra_nh0; byte ra_met3; /* dword metric */ byte ra_met2; byte ra_met1; byte ra_met0;}RIPA, *ripa_pt;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -