More RSVP packet decode/encode
[mpls-ldp-portable.git] / ldp / ldp_defaults.h
blob9966828cb4efeba06f82631390753aba6f085746
2 /*
3 * Copyright (C) James R. Leu 2000
4 * jleu@mindspring.com
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
8 */
10 #ifndef _LDP_DEFAULTS_H_
11 #define _LDP_DEFAULTS_H_
13 #define LDP_GLOBAL_DEF_CONTROL_MODE LDP_CONTROL_ORDERED
14 #define LDP_GLOBAL_DEF_RETENTION_MODE LDP_RETENTION_LIBERAL
15 #define LDP_GLOBAL_DEF_REPAIR_MODE LDP_REPAIR_GLOBAL
16 #define LDP_GLOBAL_DEF_PROPOGATE_RELEASE MPLS_BOOL_TRUE
17 #define LDP_GLOBAL_DEF_LABEL_MERGE MPLS_BOOL_TRUE
18 #define LDP_GLOBAL_DEF_LOOP_DETECTION_MODE LDP_LOOP_NONE
19 #define LDP_GLOBAL_DEF_TTLLESS_DOMAIN MPLS_BOOL_FALSE
20 #define LDP_GLOBAL_DEF_LOCAL_TCP_PORT 646
21 #define LDP_GLOBAL_DEF_LOCAL_UDP_PORT 646
22 #define LDP_GLOBAL_DEF_SEND_ADDR_MSG MPLS_BOOL_TRUE
23 #define LDP_GLOBAL_DEF_BACKOFF_STEP 15
24 #define LDP_GLOBAL_DEF_SEND_LSRID_MAPPING MPLS_BOOL_TRUE
25 #define LDP_GLOBAL_DEF_NO_ROUTE_RETRY_TIME 10
27 #define LDP_ENTITY_DEF_TRANS_ADDR LDP_TRANS_ADDR_NONE
28 #define LDP_ENTITY_DEF_PROTO_VER 1
29 #define LDP_ENTITY_DEF_REMOTE_TCP 646
30 #define LDP_ENTITY_DEF_REMOTE_UDP 646
31 #define LDP_ENTITY_DEF_MAX_PDU 4096
32 #define LDP_ENTITY_DEF_KEEPALIVE_TIMER 45
33 #define LDP_ENTITY_DEF_KEEPALIVE_INTERVAL 15
34 #define LDP_ENTITY_DEF_HELLOTIME_TIMER 15
35 #define LDP_ENTITY_DEF_HELLOTIME_INTERVAL 5
36 #define LDP_ENTITY_DEF_SESSIONSETUP_COUNT LDP_INFINIT
37 #define LDP_ENTITY_DEF_SESSION_BACKOFF_TIMER 10
38 #define LDP_ENTITY_DEF_DISTRIBUTION_MODE LDP_DISTRIBUTION_UNSOLICITED
39 #define LDP_ENTITY_DEF_PATHVECTOR_LIMIT 10
40 #define LDP_ENTITY_DEF_HOPCOUNT_LIMIT 30
41 #define LDP_ENTITY_DEF_REQUEST_TIMER 30
42 #define LDP_ENTITY_DEF_REQUEST_COUNT LDP_INFINIT
43 #define LDP_ENTITY_DEF_REQUIRE_HOPCOUNT MPLS_BOOL_FALSE
45 /* you can infer this from REQUEST_COUNT */
46 #define LDP_ENTITY_DEF_REQUEST_RETRY MPLS_BOOL_TRUE
47 #define LDP_ENTITY_DEF_INHERIT_FLAG LDP_ENTITY_CFG_TRANS_ADDR|\
48 LDP_ENTITY_CFG_KEEPALIVE_TIMER|\
49 LDP_ENTITY_CFG_KEEPALIVE_INTERVAL|\
50 LDP_ENTITY_CFG_HELLOTIME_TIMER|\
51 LDP_ENTITY_CFG_HELLOTIME_INTERVAL
53 #define LDP_REQUEST_CHUNK 2
55 #endif