]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_pw.h
2 * Copyright (C) 2016 Volta Networks, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; see the file COPYING; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 #include <netinet/in.h>
29 #define PW_INSTALL_RETRY_INTERVAL 30
32 RB_ENTRY(zebra_pw
) pw_entry
, static_pw_entry
;
34 char ifname
[IF_NAMESIZE
];
40 uint32_t remote_label
;
42 union pw_protocol_fields data
;
48 struct thread
*install_retry_timer
;
51 DECLARE_QOBJ_TYPE(zebra_pw
)
53 RB_HEAD(zebra_pw_head
, zebra_pw
);
54 RB_PROTOTYPE(zebra_pw_head
, zebra_pw
, pw_entry
, zebra_pw_compare
);
56 RB_HEAD(zebra_static_pw_head
, zebra_pw
);
57 RB_PROTOTYPE(zebra_static_pw_head
, zebra_pw
, static_pw_entry
, zebra_pw_compare
);
59 DECLARE_HOOK(pw_install
, (struct zebra_pw
* pw
), (pw
))
60 DECLARE_HOOK(pw_uninstall
, (struct zebra_pw
* pw
), (pw
))
62 struct zebra_pw
*zebra_pw_add(struct zebra_vrf
*, const char *, uint8_t,
64 void zebra_pw_del(struct zebra_vrf
*, struct zebra_pw
*);
65 void zebra_pw_change(struct zebra_pw
*, ifindex_t
, int, int, union g_addr
*,
66 uint32_t, uint32_t, uint8_t, union pw_protocol_fields
*);
67 struct zebra_pw
*zebra_pw_find(struct zebra_vrf
*, const char *);
68 void zebra_pw_update(struct zebra_pw
*);
69 void zebra_pw_install_failure(struct zebra_pw
*);
70 void zebra_pw_client_close(struct zserv
*);
71 void zebra_pw_init(struct zebra_vrf
*);
72 void zebra_pw_exit(struct zebra_vrf
*);
73 void zebra_pw_vty_init(void);
75 #endif /* ZEBRA_PW_H_ */