]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_mpls_openbsd.c
*: make consistent & update GPLv2 file headers
[mirror_frr.git] / zebra / zebra_mpls_openbsd.c
index 375f41cbb06c11d958d59de7373f1812d1cb5741..bca73898c5fac1a4d328862ee2c656eb994df834 100644 (file)
  * 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 GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include <zebra.h>
@@ -51,7 +50,7 @@ kernel_send_rtmsg_v4 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
     zlog_debug ("%s: 0x%x, label=%u", __func__, action, in_label);
 
   /* initialize header */
-  bzero(&hdr, sizeof (hdr));
+  memset (&hdr, 0, sizeof (hdr));
   hdr.rtm_version = RTM_VERSION;
 
   hdr.rtm_type = action;
@@ -66,7 +65,7 @@ kernel_send_rtmsg_v4 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
   iov[iovcnt++].iov_len = sizeof (hdr);
 
   /* in label */
-  bzero(&sa_label_in, sizeof (sa_label_in));
+  memset (&sa_label_in, 0, sizeof (sa_label_in));
   sa_label_in.smpls_len = sizeof (sa_label_in);
   sa_label_in.smpls_family = AF_MPLS;
   sa_label_in.smpls_label = htonl(in_label << MPLS_LABEL_OFFSET);
@@ -79,7 +78,7 @@ kernel_send_rtmsg_v4 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
   iov[iovcnt++].iov_len = sizeof (sa_label_in);
 
   /* nexthop */
-  bzero(&nexthop, sizeof (nexthop));
+  memset (&nexthop, 0, sizeof (nexthop));
   nexthop.sin_len = sizeof (nexthop);
   nexthop.sin_family = AF_INET;
   nexthop.sin_addr = nhlfe->nexthop->gate.ipv4;
@@ -94,7 +93,7 @@ kernel_send_rtmsg_v4 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
   /* If action is RTM_DELETE we have to get rid of MPLS infos */
   if (action != RTM_DELETE)
     {
-      bzero(&sa_label_out, sizeof (sa_label_out));
+      memset (&sa_label_out, 0, sizeof (sa_label_out));
       sa_label_out.smpls_len = sizeof (sa_label_out);
       sa_label_out.smpls_family = AF_MPLS;
       sa_label_out.smpls_label =
@@ -147,7 +146,7 @@ kernel_send_rtmsg_v6 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
     zlog_debug ("%s: 0x%x, label=%u", __func__, action, in_label);
 
   /* initialize header */
-  bzero(&hdr, sizeof (hdr));
+  memset (&hdr, 0, sizeof (hdr));
   hdr.rtm_version = RTM_VERSION;
 
   hdr.rtm_type = action;
@@ -162,7 +161,7 @@ kernel_send_rtmsg_v6 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
   iov[iovcnt++].iov_len = sizeof (hdr);
 
   /* in label */
-  bzero(&sa_label_in, sizeof (sa_label_in));
+  memset (&sa_label_in, 0, sizeof (sa_label_in));
   sa_label_in.smpls_len = sizeof (sa_label_in);
   sa_label_in.smpls_family = AF_MPLS;
   sa_label_in.smpls_label = htonl(in_label << MPLS_LABEL_OFFSET);
@@ -203,7 +202,7 @@ kernel_send_rtmsg_v6 (int action, mpls_label_t in_label, zebra_nhlfe_t *nhlfe)
   /* If action is RTM_DELETE we have to get rid of MPLS infos */
   if (action != RTM_DELETE)
     {
-      bzero(&sa_label_out, sizeof (sa_label_out));
+      memset (&sa_label_out, 0, sizeof (sa_label_out));
       sa_label_out.smpls_len = sizeof (sa_label_out);
       sa_label_out.smpls_family = AF_MPLS;
       sa_label_out.smpls_label =