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

📄 dsr-rreq.h

📁 DSR-UU is a DSR implementation that runs in Linux and in the ns-2 network simulator. DSR-UU imple
💻 H
字号:
/* Copyright (C) Uppsala University * * This file is distributed under the terms of the GNU general Public * License (GPL), see the file LICENSE * * Author: Erik Nordström, <erikn@it.uu.se> */#ifndef _DSR_RREQ_H#define _DSR_RREQ_H#include "dsr.h"#ifdef NS2#include "endian.h"#endif#ifndef NO_GLOBALSstruct dsr_rreq_opt {	u_int8_t type;	u_int8_t length;	u_int16_t id;	u_int32_t target;	u_int32_t addrs[0];};#define DSR_RREQ_HDR_LEN sizeof(struct dsr_rreq_opt)#define DSR_RREQ_OPT_LEN (DSR_RREQ_HDR_LEN - 2)#define DSR_RREQ_TOT_LEN IP_HDR_LEN + sizeof(struct dsr_opt_hdr) + sizeof(struct dsr_rreq_opt)#define DSR_RREQ_ADDRS_LEN(rreq_opt) (rreq_opt->length - 6)#endif				/* NO_GLOBALS */#ifndef NO_DECLSvoid rreq_tbl_set_max_len(unsigned int max_len);int dsr_rreq_opt_recv(struct dsr_pkt *dp, struct dsr_rreq_opt *rreq_opt);int rreq_tbl_route_discovery_cancel(struct in_addr dst);int dsr_rreq_route_discovery(struct in_addr target);int dsr_rreq_send(struct in_addr target, int ttl);void rreq_tbl_timeout(unsigned long data);struct rreq_tbl_entry *__rreq_tbl_entry_create(struct in_addr node_addr);struct rreq_tbl_entry *__rreq_tbl_add(struct in_addr node_addr);int rreq_tbl_add_id(struct in_addr initiator, struct in_addr target,		    unsigned short id);int dsr_rreq_duplicate(struct in_addr initiator, struct in_addr target,		       unsigned int id);int rreq_tbl_init(void);void rreq_tbl_cleanup(void);#endif				/* NO_DECLS */#endif				/* _DSR_RREQ */

⌨️ 快捷键说明

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