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 olsrd-unik.
7 * UniK olsrd 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 * UniK olsrd 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 olsrd-unik; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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.
40 * Commands to get datapointers MUST have the prefix
41 * GETD__ added to the full name of the variable/pointer
43 * Example: A command to get a pointer to a variable called
44 * "myvar" in olsrd must be called GETD__MYVAR
47 * Commands to get pointers to olsrd functions MUST have
48 * the prefix GETF__ added to the full name of the runction
50 * Example: A command to get a pointer to the function
51 * "my_function" must be named GETF__MY_FUNCTION
54 * New commands can be added - BUT EXISTING COMMANDS MUST
55 * _NEVER_ CHANGE VALUE!
58 #ifndef _OLSR_PLUGIN_IO
59 #define _OLSR_PLUGIN_IO
61 /* Data fetching - starts at 100 */
62 #define GETD__PACKET 100
63 #define GETD__OUTPUTSIZE 101
64 #define GETD__IFNET 102
66 #define GETD__PARSER_ENTRIES 104
67 #define GETD__OLSR_SOCKET_ENTRIES 105
68 #define GETD__MAXMESSAGESIZE 106
69 #define GETD__NEIGHBORTABLE 108
70 #define GETD__TWO_HOP_NEIGHBORTABLE 109
71 #define GETD__TC_TABLE 110
72 #define GETD__HNA_SET 111
74 /* Function fetching - starts at 500 */
75 #define GETF__OLSR_REGISTER_SCHEDULER_EVENT 500
76 #define GETF__OLSR_REMOVE_SCHEDULER_EVENT 501
77 #define GETF__OLSR_PARSER_ADD_FUNCTION 502
78 #define GETF__OLSR_PARSER_REMOVE_FUNCTION 503
79 #define GETF__OLSR_REGISTER_TIMEOUT_FUNCTION 504
80 #define GETF__OLSR_REMOVE_TIMEOUT_FUNCTION 505
81 #define GETF__GET_MSG_SEQNO 506
82 #define GETF__OLSR_CHECK_DUP_TABLE_PROC 507
83 #define GETF__NET_OUTPUT 508
84 #define GETF__OLSR_FORWARD_MESSAGE 509
85 #define GETF__ADD_OLSR_SOCKET 510
86 #define GETF__REMOVE_OLSR_SOCKET 511
87 #define GETF__CHECK_NEIGHBOR_LINK 512
88 #define GETF__OLSR_PRINTF 513
89 #define GETF__OLSR_MALLOC 514
90 #define GETF__DOUBLE_TO_ME 515
91 #define GETF__ME_TO_DOUBLE 516
92 #define GETF__ADD_LOCAL_HNA4_ENTRY 517
93 #define GETF__REMOVE_LOCAL_HNA4_ENTRY 518
94 #define GETF__ADD_LOCAL_HNA6_ENTRY 519
95 #define GETF__REMOVE_LOCAL_HNA6_ENTRY 520
96 #define GETF__OLSR_INPUT 521
97 #define GETF__ADD_PTF 522
98 #define GETF__DEL_PTF 523
99 #define GETF__IF_IFWITHSOCK 524
100 #define GETF__IF_IFWITHADDR 525
101 #define GETF__PARSE_PACKET 526
102 #define GETF__REGISTER_PCF 527
103 #define GETF__OLSR_HASHING 528
104 #define GETF__ADD_IFCHGF 529
105 #define GETF__DEL_IFCHGF 530