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

📄 mip6_babymdd.h

📁 vxworks 6.x 的全部头文件
💻 H
字号:
/* mip6_babymdd.h - MIP6 movement detection header file *//* Copyright 2005 Wind River Systems, Inc. *//* * Copyright (C) 2004 WIDE Project.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the project nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *//*modification history--------------------01j,28sep05,xli  change parameter "mip6options" to "mip6CfgString"01i,01sep05,tlu  rename mip6 file name01h,03aug05,tlu  add IAMUNKNOWN, fields wherewasi and hoa_info01g,03jul05,xli  remove mip6InitializeMd()01f,29jul05,xli  remove md_initialize_env() 01e,19jul05,xli  move configruation API to mip6.h 01d,22jun05,tlu  move out some public APIs01c,14jun05,tlu  add _cplusplus condition01b,31may05,tlu  rename constants.h01a,04apr05,tlu  1st round of porting Kame MIP6*/#if !defined (_BABYMDD_H_)#define _BABYMDD_H_#ifdef __cplusplusextern "C" {#endif#include <mip6/mip6_constants.h>#define MD_BUFSIZE              8196#define DEFAULT_CONFFILE "./mdd.conf"#define DEFAULT_POLL 0#define DEFAULT_DEBUG 0#define DEFAULT_PRIORITY 0#define DEFAULT_LINKWIFIHIGH 30#define DEFAULT_LINKWIFILOW  15#define DEFAULT_LINKCHECK 10 #define DEBUG_NONE   0#define DEBUG_NORMAL 1#define DEBUG_HIGH   2#define DEBUGHIGH (babyinfo.debug >= DEBUG_HIGH) #define DEBUGNORM (babyinfo.debug >= DEBUG_NORMAL)#define DEBUGNONE (babyinfo.debug == DEBUG_NONE)struct mdd_info {	int debug;	int linkpoll;	int dns;	int nondaemon;	int rtsock;	int mipsock;	int linksock;	int wherewasi;	int whereami;#define IAMUNKNOWN 0 #define IAMHOME    1#define IAMFOREIGN 2	struct if_info *coaif;	LIST_HEAD(, if_info) ifinfo_head;	u_int16_t hoa_index;	LIST_HEAD(, hoa_info) hoainfo_head;	struct if_info *hoa_info;   /* interface for current HoA */	};struct hoa_info {	LIST_ENTRY(hoa_info) hoainfo_entry;	struct sockaddr_storage hoa;/* HoA */};struct if_info {	LIST_ENTRY(if_info) ifinfo_entry;	char ifname[IFNAMSIZ];	u_int16_t ifindex;	struct sockaddr_storage coa;/* Current CoA */	struct sockaddr_storage pcoa;/* Previous CoA */	time_t lastsent;	int priority;	int linkstatus;};/* Private APIs */STATUS mn_create_md_task();STATUS mn_md_task_entry_ptr();STATUS md_initialize_default();STATUS mip6CfgMnMd(char* mip6CfgString);#ifdef __cplusplus}#endif#endif /* _BABYMDD_H_ */

⌨️ 快捷键说明

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