]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/rfapi/rfapi_ap.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / rfapi / rfapi_ap.h
index 8a59f05274af08f722fd8dd5737a1b09d66086ea..7698fbaed6581751004f99d6d7ba1f44092dc0a8 100644 (file)
@@ -1,22 +1,8 @@
-/* 
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
  *
  * Copyright 2009-2016, LabN Consulting, L.L.C.
  *
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- *
  */
 #ifndef _QUAGGA_BGP_RFAPI_AP_H
 #define _QUAGGA_BGP_RFAPI_AP_H
 #include "rfapi_rib.h"
 
 
-extern void
-rfapiApInit (struct rfapi_advertised_prefixes *ap);
+extern void rfapiApInit(struct rfapi_advertised_prefixes *ap);
 
-extern void
-rfapiApRelease (struct rfapi_advertised_prefixes *ap);
-
-extern int
-rfapiApCount (struct rfapi_descriptor *rfd);
+extern void rfapiApRelease(struct rfapi_advertised_prefixes *ap);
 
+extern int rfapiApCount(struct rfapi_descriptor *rfd);
 
-extern int
-rfapiApCountAll (struct bgp *bgp);
 
-extern void
-rfapiApReadvertiseAll (struct bgp *bgp, struct rfapi_descriptor *rfd);
+extern int rfapiApCountAll(struct bgp *bgp);
 
-extern void
-rfapiApWithdrawAll (struct bgp *bgp, struct rfapi_descriptor *rfd);
+extern void rfapiApReadvertiseAll(struct bgp *bgp,
+                                 struct rfapi_descriptor *rfd);
 
-extern int
-rfapiApAdd (
-  struct bgp                   *bgp,
-  struct rfapi_descriptor      *rfd,
-  struct prefix                        *pfx_ip,
-  struct prefix                        *pfx_eth,
-  struct prefix_rd             *prd,
-  uint32_t                     lifetime,
-  uint8_t                      cost,
-  struct rfapi_l2address_option        *l2o);       /* other options TBD */
+extern void rfapiApWithdrawAll(struct bgp *bgp, struct rfapi_descriptor *rfd);
 
 extern int
-rfapiApDelete (
-  struct bgp                   *bgp,
-  struct rfapi_descriptor      *rfd,
-  struct prefix                        *pfx_ip,
-  struct prefix                        *pfx_eth,
-  struct prefix_rd             *prd,
-  int                          *advertise_tunnel); /* out */
+rfapiApAdd(struct bgp *bgp, struct rfapi_descriptor *rfd, struct prefix *pfx_ip,
+          struct prefix *pfx_eth, struct prefix_rd *prd, uint32_t lifetime,
+          uint8_t cost,
+          struct rfapi_l2address_option *l2o); /* other options TBD */
+
+extern int rfapiApDelete(struct bgp *bgp, struct rfapi_descriptor *rfd,
+                        struct prefix *pfx_ip, struct prefix *pfx_eth,
+                        struct prefix_rd *prd,
+                        int *advertise_tunnel); /* out */
 
 
 #endif /* _QUAGGA_BGP_RFAPI_AP_H */