e1605438baf37667041d0fc564a0ed9565b93c17
[trust_router.git] / include / trust_router / trp.h
1 #ifndef TRP_H
2 #define TRP_H
3
4 #include <talloc.h>
5
6 #define TRP_PORT 12310
7 #define TRP_METRIC_INFINITY 0xFFFF
8 #define TRP_METRIC_INVALID 0xFFFFFFFF
9 #define TRP_INTERVAL_INVALID 0
10
11 typedef enum trp_rc {
12   TRP_SUCCESS=0,
13   TRP_ERROR, /* generic error */
14   TRP_NOPARSE, /* parse error */
15   TRP_NOMEM, /* allocation error */
16   TRP_BADTYPE, /* typing error */
17   TRP_UNSUPPORTED, /* unsupported feature */
18 } TRP_RC;
19
20
21 typedef struct trp_update TRP_UPD;
22 typedef struct trp_req TRP_REQ;
23
24 #endif /* TRP_H */