Don't allow the user to delete a fec that still has nexthops
[mpls-ldp-portable.git] / rsvpte / rsvpte_cfg.h
blob064992fd799b1c9f0516ef904ccf5111df0d6d9c
1 /*
2 * Copyright (C) James R. Leu 2003
3 * jleu@mindspring.com
5 * This software is covered under the LGPL, for more
6 * info check out http://www.gnu.org/copyleft/lgpl.html
7 */
9 #ifndef RSVPTE_CFG_H
10 #define RSVPTE_CFG_H
12 #include "rsvpte_struct.h"
14 #define RSVPTE_CFG_ADD 0x00000001
15 #define RSVPTE_CFG_DEL 0x10000000
17 #define RSVPTE_GLOBAL_CFG_ADMIN_STATE 0x00000002
18 #define RSVPTE_GLOBAL_CFG_LSR_IDENTIFIER 0x00000004
19 #define RSVPTE_GLOBAL_CFG_LSR_HANDLE 0x00000008
21 #define RSVPTE_GLOBAL_CFG_WHEN_DOWN (RSVPTE_CFG_DEL|\
22 RSVPTE_GLOBAL_CFG_LSR_IDENTIFIER|\
23 RSVPTE_GLOBAL_CFG_LSR_HANDLE)
25 #define RSVPTE_IF_CFG_LABEL_SPACE 0x00000002
26 #define RSVPTE_IF_CFG_INDEX 0x00000004
27 #define RSVPTE_IF_CFG_ADMIN_STATE 0x00000008
28 #define RSVPTE_IF_CFG_OPER_STATE 0x00000010
29 #define RSVPTE_IF_CFG_LOCAL_SOURCE_ADDR 0x00000020
30 #define RSVPTE_IF_CFG_NAME 0x00000040
32 #define RSVPTE_IF_CFG_WHEN_DOWN (RSVPTE_CFG_DEL|\
33 RSVPTE_IF_CFG_LABEL_SPACE|\
34 RSVPTE_IF_CFG_LOCAL_SOURCE_ADDR)
36 extern mpls_cfg_handle rsvpte_cfg_open(mpls_instance_handle data);
37 extern void rsvpte_cfg_close(mpls_cfg_handle handle);
39 extern mpls_return_enum rsvpte_cfg_global_get(mpls_cfg_handle handle,
40 rsvpte_global * g, uint32_t flag);
41 extern mpls_return_enum rsvpte_cfg_global_set(mpls_cfg_handle handle,
42 rsvpte_global * g, uint32_t flag);
44 extern mpls_return_enum rsvpte_cfg_if_get(mpls_cfg_handle handle,
45 rsvpte_if * i, uint32_t flag);
46 extern mpls_return_enum rsvpte_cfg_if_getnext(mpls_cfg_handle handle,
47 rsvpte_if * i, uint32_t flag);
48 extern mpls_return_enum rsvpte_cfg_if_test(mpls_cfg_handle handle,
49 rsvpte_if * i, uint32_t flag);
50 extern mpls_return_enum rsvpte_cfg_if_set(mpls_cfg_handle handle,
51 rsvpte_if * i, uint32_t flag);
53 #endif