diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-06-30 17:19:39 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-09 12:35:16 +0200 |
commit | 87b5f1b77b4391eee99121941cf899e16835eb41 (patch) | |
tree | 1c4d0a81bef699fb7e00153883a00f65682966f7 /lib/pw.h | |
parent | zebra: add new flag to detect nexthop label updates (diff) | |
download | frr-87b5f1b77b4391eee99121941cf899e16835eb41.tar.xz frr-87b5f1b77b4391eee99121941cf899e16835eb41.zip |
ldpd: integrate with the pseudowire manager in zebra
If we receive a notification from zebra indicating that the installation
of a pseudowire has failed (e.g. no reachability), send a PW Status
notification to the remote peer (or a Label Withdraw if the remote peer
doesn't support the PW Status TLV).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/pw.h')
-rw-r--r-- | lib/pw.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -20,6 +20,9 @@ #ifndef _FRR_PW_H #define _FRR_PW_H +/* L2VPN name length. */ +#define L2VPN_NAME_LEN 32 + /* Pseudowire type - LDP and BGP use the same values. */ #define PW_TYPE_ETHERNET_TAGGED 0x0004 /* RFC 4446 */ #define PW_TYPE_ETHERNET 0x0005 /* RFC 4446 */ @@ -37,7 +40,9 @@ */ union pw_protocol_fields { struct { - /* TODO */ + struct in_addr lsr_id; + uint32_t pwid; + char vpn_name[L2VPN_NAME_LEN]; } ldp; struct { /* TODO */ |