RTRlib
Main Page
Modules
Data Structures
Examples
All
Data Structures
Functions
Typedefs
Enumerations
Enumerator
Groups
Pages
rtrlib
rtr
packets.h
1
/*
2
* This file is part of RTRlib.
3
*
4
* This file is subject to the terms and conditions of the MIT license.
5
* See the file LICENSE in the top level directory for more details.
6
*
7
* Website: http://rtrlib.realmv6.org/
8
*/
9
10
#ifndef RTR_PACKETS_H
11
#define RTR_PACKETS_H
12
#include <arpa/inet.h>
13
#include "rtrlib/lib/ipv6.h"
14
#include "rtrlib/lib/ipv4.h"
15
#include "rtrlib/rtr/rtr.h"
16
17
18
static
const
unsigned
int
RTR_MAX_PDU_LEN = 3248;
//error pdu: header(8) + len(4) + ipv6_pdu(32) + len(4) + 400*8 (400 char text)
19
static
const
unsigned
int
RTR_RECV_TIMEOUT = 60;
20
static
const
unsigned
int
RTR_SEND_TIMEOUT = 60;
21
22
void
rtr_change_socket_state(
struct
rtr_socket
*
rtr_socket
,
const
enum
rtr_socket_state
new_state);
23
int
rtr_sync(
struct
rtr_socket
*
rtr_socket
);
24
int
rtr_wait_for_sync(
struct
rtr_socket
*
rtr_socket
);
25
int
rtr_send_serial_query(
struct
rtr_socket
*
rtr_socket
);
26
int
rtr_send_reset_query(
struct
rtr_socket
*
rtr_socket
);
27
28
#endif
rtr_socket_state
rtr_socket_state
States of the RTR socket.
Definition:
rtr.h:45
rtr_socket
A RTR socket.
Definition:
rtr.h:102
Generated on Sun Apr 10 2016 04:30:49 for RTRlib by
1.8.5