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

📄 quagga.h

📁 wifi 无线网络路由协议OLSR linux下C代码
💻 H
字号:
/*************************************************************************** projekt              : olsrd-quagga file                 : quagga.h   usage                : header for quagga.c copyright            : (C) 2006 by Immo 'FaUl' Wehrenberg e-mail               : immo@chaostreff-dortmund.de ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License version 2 as     * *   published by the Free Software Foundation.                            * *                                                                         * ***************************************************************************/#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include "routing_table.h"#define HAVE_SOCKLEN_T#include <quagga/zebra.h>#ifndef ZEBRA_PORT#define ZEBRA_PORT 2600#endif#ifdef ZEBRA_HEADER_MARKER#ifndef ZSERV_VERSION#define ZSERV_VERSION 1#endif#endifstruct ipv4_route {  uint8_t type;  uint8_t flags;  uint8_t message;  uint8_t prefixlen;  uint32_t prefix;  uint8_t nh_count;  struct {    uint8_t type;    union {      uint32_t v4;    } payload;  } *nexthops;  uint8_t ind_num;  uint32_t *index;  uint32_t metric;  uint8_t distance;  struct ipv4_route *next;};void init_zebra (void);void zebra_cleanup (void);unsigned char zebra_send_command (unsigned char, unsigned char *, int );int zebra_add_v4_route (struct ipv4_route r);int zebra_delete_v4_route (struct ipv4_route r);void zebra_check (void*);int zebra_parse_packet (unsigned char*, ssize_t);int zebra_redistribute (unsigned char);int zebra_disable_redistribute (unsigned char);int add_hna4_route (struct ipv4_route);int delete_hna4_route (struct ipv4_route);void *my_realloc (void *, size_t, const char *);int zebra_add_olsr_v4_route (struct rt_entry *);int zebra_del_olsr_v4_route (struct rt_entry *);void zebra_olsr_localpref (void);void zebra_olsr_distance (unsigned char);void zebra_export_routes(unsigned char);

⌨️ 快捷键说明

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