26#define NW_PROTOCOL_BRP NW_PROTOCOL_ZRP
27#define BRP_PACKET_SIZE 32
30#define flushBodercastTree(brp) { while(brp->bodercastTree) LIST_FREE((void**)&brp->bodercastTree,brp->bodercastTree);}
58 NETSIM_IPAddress QuerySourceAddress;
59 NETSIM_IPAddress QueryDestinationAddress;
60 unsigned short int QueryID;
61 unsigned char QueryExtension;
62 unsigned char RESERVED;
63 NETSIM_IPAddress PrevBordercastAddress;
64 NetSim_PACKET* EncapsulatedPacket;
69 NETSIM_IPAddress borderIP;
71 NETSIM_IPAddress nexthop;
74#define BRP_BODERCAST_TREE_ALLOC() (struct stru_BodercastTree*)list_alloc(sizeof(struct stru_BodercastTree),offsetof(struct stru_BodercastTree,ele))
78 BRP_BODERCAST_TREE* bodercastTree;
79 unsigned short int nQueryId;
83 int fn_NetSim_BRP_Init();
84 int fn_NetSim_BRP_CopyBRPHeader(
const NetSim_PACKET* destPacket,
const NetSim_PACKET* srcPacket);
85 int fn_NetSim_BRP_FreeBRPHeader(NetSim_PACKET* packet);
86 int addToBodercastTree(NODE_BRP* brp,
87 NETSIM_IPAddress boderIP,
88 NETSIM_IPAddress nextHop);
89 int fn_NetSim_BRP_BodercastPacket(NetSim_PACKET* dataPacket);
90 int fn_NetSim_BRP_ProcessPacket();
91 int fn_NetSim_BRP_Update(ptrIP_ROUTINGTABLE iarpTable);