]> git.proxmox.com Git - mirror_frr.git/blobdiff - ldpd/ldpd.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / ldpd / ldpd.h
index fd0097ca5e76eb0625b398d701b9c71895727002..dc993e3d7cc645571873c9e3c1b9f143adbc791f 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: ISC
 /*     $OpenBSD$ */
 
 /*
@@ -5,18 +6,6 @@
  * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
  * Copyright (c) 2004 Esben Norby <norby@openbsd.org>
  * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
 #ifndef _LDPD_H_
@@ -352,7 +341,7 @@ struct iface_ldp_sync {
 
 struct iface {
        RB_ENTRY(iface)          entry;
-       char                     name[IF_NAMESIZE];
+       char                     name[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        struct if_addr_head      addr_list;
        struct in6_addr          linklocal;
@@ -458,7 +447,7 @@ struct ldp_entity_stats {
 struct l2vpn_if {
        RB_ENTRY(l2vpn_if)       entry;
        struct l2vpn            *l2vpn;
-       char                     ifname[IF_NAMESIZE];
+       char                     ifname[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        int                      operative;
        uint8_t                  mac[ETH_ALEN];
@@ -475,7 +464,7 @@ struct l2vpn_pw {
        int                      af;
        union ldpd_addr          addr;
        uint32_t                 pwid;
-       char                     ifname[IF_NAMESIZE];
+       char                     ifname[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        bool                     enabled;
        uint32_t                 remote_group;
@@ -507,7 +496,7 @@ struct l2vpn {
        int                      type;
        int                      pw_type;
        int                      mtu;
-       char                     br_ifname[IF_NAMESIZE];
+       char                     br_ifname[INTERFACE_NAMSIZ];
        ifindex_t                br_ifindex;
        struct l2vpn_if_head     if_tree;
        struct l2vpn_pw_head     pw_tree;
@@ -629,7 +618,7 @@ struct kroute {
 };
 
 struct kaddr {
-       char                     ifname[IF_NAMESIZE];
+       char                     ifname[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        int                      af;
        union ldpd_addr          addr;
@@ -638,7 +627,7 @@ struct kaddr {
 };
 
 struct kif {
-       char                     ifname[IF_NAMESIZE];
+       char                     ifname[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        int                      flags;
        int                      operative;
@@ -656,7 +645,7 @@ struct acl_check {
 /* control data structures */
 struct ctl_iface {
        int                      af;
-       char                     name[IF_NAMESIZE];
+       char                     name[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        int                      state;
        enum iface_type          type;
@@ -667,7 +656,7 @@ struct ctl_iface {
 };
 
 struct ctl_disc_if {
-       char                     name[IF_NAMESIZE];
+       char                     name[INTERFACE_NAMSIZ];
        int                      active_v4;
        int                      active_v6;
        int                      no_adj;
@@ -683,7 +672,7 @@ struct ctl_adj {
        int                      af;
        struct in_addr           id;
        enum hello_type          type;
-       char                     ifname[IF_NAMESIZE];
+       char                     ifname[INTERFACE_NAMSIZ];
        union ldpd_addr          src_addr;
        uint16_t                 holdtime;
        uint16_t                 holdtime_remaining;
@@ -723,7 +712,7 @@ struct ctl_rt {
 struct ctl_pw {
        uint16_t                 type;
        char                     l2vpn_name[L2VPN_NAME_LEN];
-       char                     ifname[IF_NAMESIZE];
+       char                     ifname[INTERFACE_NAMSIZ];
        uint32_t                 pwid;
        struct in_addr           lsr_id;
        uint32_t                 local_label;
@@ -739,7 +728,7 @@ struct ctl_pw {
 };
 
 struct ctl_ldp_sync {
-       char                     name[IF_NAMESIZE];
+       char                     name[INTERFACE_NAMSIZ];
        ifindex_t                ifindex;
        bool                     in_sync;
        bool                     timer_running;