forked from matsuhira/m46e-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathm46eapp_mng_com_route.h
More file actions
40 lines (32 loc) · 1.93 KB
/
m46eapp_mng_com_route.h
File metadata and controls
40 lines (32 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/******************************************************************************/
/* ファイル名 : m46eapp_mng_com_route.h */
/* 機能概要 : 経路管理 共通ヘッダファイル */
/* 修正履歴 : 2013.06.06 Y.Shibata 新規作成 */
/* 2016.04.15 H.Koganemaru 名称変更に伴う修正 */
/* */
/* ALL RIGHTS RESERVED, COPYRIGHT(C) FUJITSU LIMITED 2013-2016 */
/******************************************************************************/
#ifndef __M46EAPP_MNG_COM_ROUTE_H__
#define __M46EAPP_MNG_COM_ROUTE_H__
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include "m46eapp_command.h"
////////////////////////////////////////////////////////////////////////////////
// 外部マクロ定義
////////////////////////////////////////////////////////////////////////////////
//!経路同期:経路追加要求
#define RTSYNC_ROUTE_ADD 0
//!経路同期:経路削除要求
#define RTSYNC_ROUTE_DEL 1
////////////////////////////////////////////////////////////////////////////////
// 外部関数プロトタイプ宣言
////////////////////////////////////////////////////////////////////////////////
int m46e_get_route_entry(int family, void* route_info);
int m46e_update_route_info(int type, int family, struct rtmsg *rtm, struct rtattr **tb, void *data);
int m46e_add_route(int family, void* route, void* entry);
int m46e_del_route(int family, void* route, void* entry);
int m46e_search_route(int family, void* route, void* entry);
int m46e_get_route_number(int family, void* route, void* entry);
int m46e_set_route_info(int family, struct rtmsg *rtm, struct rtattr **tb, void *route_info);
void m46e_del_route_by_device(struct m46e_handler_t* handler, int devidx);
#endif //__M46EAPP_MNG_COM_ROUTE_H__