-
Notifications
You must be signed in to change notification settings - Fork 0
/
route.h
32 lines (26 loc) · 797 Bytes
/
route.h
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
/** route.h
* (ipv6) routing extension header
*/
#ifndef _SENDIP_ROUTE_H
#define _SENDIP_ROUTE_H
/* routement header */
typedef struct ipv6_rt_hdr route_header;
/* Defines for which parts have been modified */
#define ROUTE_MOD_NEXTHDR (1)
#define ROUTE_MOD_TYPE (1<<1)
#define ROUTE_MOD_SEGMENTS (1<<2)
#define ROUTE_MOD_RESV (1<<3)
#define ROUTE_MOD_ADDRLIST (1<<4)
/* Absolute limit on the number of addresses we can specify */
#define ADDRMAX (OCTET_MAX/2)
/* Options */
sendip_option route_opts[] = {
{ "n", 1, "Next header protocol", "Correct" },
{ "t", 1, "Header type", "0" },
{ "s", 1, "Segments left", "0" },
{ "r", 1, "Reserved field", "0" },
{ "a", 1, "Comma separated list of addresses", "none" },
};
#endif /* _SENDIP_ROUTE_H */
/* vim: ts=4 sw=4 filetype=c
*/