📄 seek_list.h
字号:
/***************************************************************************** * * Copyright (C) 2001 Uppsala University & Ericsson AB. * Copyright (C) 2003 Simon Fraser University and NewMIC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Authors: Erik Nordstr鰉, <erik.nordstrom@it.uu.se> * : Peter Lee <peter.lee@shaw.ca> * * *****************************************************************************/#ifndef SEEK_LIST_H#define SEEK_LIST_H#ifndef NS_NO_GLOBALS#include "defs.h"#include "timer_queue.h"//PL#ifdef _IPV6#define IP_DATA_MAX_LEN 60 + 8 /* PL: Need to find out how big is this */#else#define IP_DATA_MAX_LEN 60 + 8 /* Max IP header + 64 bits of data */#endif /* _IPV6 */typedef struct dest_list{ struct in6_addr dest_addr; struct dest_list *next;} dest_list_t;struct ip_data { char data[IP_DATA_MAX_LEN]; int len;};/* This is a list of nodes that route discovery are performed for */typedef struct seek_list {//PL#ifdef _IPV6 struct in6_addr dest_addr;#else u_int32_t dest_addr;#endif /* _IPV6 */ u_int32_t dest_seqno; struct ip_data *ipd; u_int8_t flags; /* The flags we are using for resending the RREQ */ int to_internet; int reqs; int ttl; struct timer seek_timer; struct seek_list *next;} seek_list_t;#endif /* NS_NO_GLOBALS */#ifndef NS_NO_DECLARATIONS//PL#ifdef _IPV6seek_list_t *seek_list_insert(struct in6_addr dest_addr, u_int32_t dest_seqno, int ttl, u_int8_t flags, struct ip_data *ipd);int seek_list_remove(struct in6_addr dest_addr);seek_list_t *seek_list_find(struct in6_addr dest_addr);dest_list_t *seek_list_find_i();#elseseek_list_t *seek_list_insert(u_int32_t dest_addr, u_int32_t dest_seqno, int ttl, u_int8_t flags, struct ip_data *ipd);int seek_list_remove(u_int32_t dest_addr);seek_list_t *seek_list_find(u_int32_t dest_addr);#endif /* _IPV6 *///#ifdef NS_PORT//#ifdef SEEK_LIST_DEBUGvoid seek_list_print();//#endif//#endif /* NS_PORT */#endif /* NS_NO_DECLARATIONS */#endif /* SEEK_LIST_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -