2 * OLSR ad-hoc routing table management protocol
3 * Copyright (C) 2004 Andreas Tønnesen (andreto@ifi.uio.no)
5 * This file is part of the olsr.org OLSR daemon.
7 * olsr.org is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * olsr.org is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with olsr.org; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * $Id: olsr_plugin_io.h,v 1.4 2004/11/07 10:54:18 kattemat Exp $
27 * REVISIONS(starting from 0.4.6):
28 * 0.4.5 - 0.4.6 : GETD_S removed. The socket entries now reside within the
30 * Added GETF__ADD_IFCHGF and GETF__DEL_IFCHGF.
32 * 0.4.8 : GETF__APM_READ added
33 * GETD__OLSR_CNF added
35 * GETD_MAXMESSAGESIZE removed
36 * GETD_OUTPUTSIZE removed
45 * Commands to get datapointers MUST have the prefix
46 * GETD__ added to the full name of the variable/pointer
48 * Example: A command to get a pointer to a variable called
49 * "myvar" in olsrd must be called GETD__MYVAR
52 * Commands to get pointers to olsrd functions MUST have
53 * the prefix GETF__ added to the full name of the runction
55 * Example: A command to get a pointer to the function
56 * "my_function" must be named GETF__MY_FUNCTION
59 * New commands can be added - BUT EXISTING COMMANDS MUST
60 * _NEVER_ CHANGE VALUE!
63 #ifndef _OLSR_PLUGIN_IO
64 #define _OLSR_PLUGIN_IO
66 /* Data fetching - starts at 100 (used to anyway) */
67 #define GETD__IFNET 102
69 #define GETD__PARSER_ENTRIES 104
70 #define GETD__OLSR_SOCKET_ENTRIES 105
71 #define GETD__NEIGHBORTABLE 108
72 #define GETD__TWO_HOP_NEIGHBORTABLE 109
73 #define GETD__TC_TABLE 110
74 #define GETD__HNA_SET 111
75 #define GETD__OLSR_CNF 112
77 /* Function fetching - starts at 500 */
78 #define GETF__OLSR_REGISTER_SCHEDULER_EVENT 500
79 #define GETF__OLSR_REMOVE_SCHEDULER_EVENT 501
80 #define GETF__OLSR_PARSER_ADD_FUNCTION 502
81 #define GETF__OLSR_PARSER_REMOVE_FUNCTION 503
82 #define GETF__OLSR_REGISTER_TIMEOUT_FUNCTION 504
83 #define GETF__OLSR_REMOVE_TIMEOUT_FUNCTION 505
84 #define GETF__GET_MSG_SEQNO 506
85 #define GETF__OLSR_CHECK_DUP_TABLE_PROC 507
86 #define GETF__NET_OUTPUT 508
87 #define GETF__OLSR_FORWARD_MESSAGE 509
88 #define GETF__ADD_OLSR_SOCKET 510
89 #define GETF__REMOVE_OLSR_SOCKET 511
90 #define GETF__CHECK_NEIGHBOR_LINK 512
91 #define GETF__OLSR_PRINTF 513
92 #define GETF__OLSR_MALLOC 514
93 #define GETF__DOUBLE_TO_ME 515
94 #define GETF__ME_TO_DOUBLE 516
95 #define GETF__ADD_LOCAL_HNA4_ENTRY 517
96 #define GETF__REMOVE_LOCAL_HNA4_ENTRY 518
97 #define GETF__ADD_LOCAL_HNA6_ENTRY 519
98 #define GETF__REMOVE_LOCAL_HNA6_ENTRY 520
99 #define GETF__OLSR_INPUT 521
100 #define GETF__ADD_PTF 522
101 #define GETF__DEL_PTF 523
102 #define GETF__IF_IFWITHSOCK 524
103 #define GETF__IF_IFWITHADDR 525
104 #define GETF__PARSE_PACKET 526
105 #define GETF__REGISTER_PCF 527
106 #define GETF__OLSR_HASHING 528
107 #define GETF__ADD_IFCHGF 529
108 #define GETF__DEL_IFCHGF 530
109 #define GETF__APM_READ 531
110 #define GETF__NET_OUTBUFFER_PUSH 532