]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_network.c
Merge pull request #13141 from mjstapp/fix_ospf_json_keys
[mirror_frr.git] / ospf6d / ospf6_network.c
index 7501f49fe02f2116457a169a0b6f5b79b3fa71de..eddf8778e5ca577d5c733d564b2a2f231a8c481d 100644 (file)
@@ -1,21 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2003 Yasuhiro Ohara
- *
- * This file is part of GNU Zebra.
- *
- * GNU Zebra 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, or (at your option) any
- * later version.
- *
- * GNU Zebra 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; 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>
@@ -173,7 +158,7 @@ int ospf6_sendmsg(struct in6_addr *src, struct in6_addr *dst,
        memset(&cmsgbuf, 0, sizeof(cmsgbuf));
        scmsgp = (struct cmsghdr *)&cmsgbuf;
        pktinfo = (struct in6_pktinfo *)(CMSG_DATA(scmsgp));
-       memset(&dst_sin6, 0, sizeof(struct sockaddr_in6));
+       memset(&dst_sin6, 0, sizeof(dst_sin6));
 
        /* source address */
        pktinfo->ipi6_ifindex = ifindex;
@@ -226,7 +211,7 @@ int ospf6_recvmsg(struct in6_addr *src, struct in6_addr *dst,
 
        rcmsgp = (struct cmsghdr *)cmsgbuf;
        pktinfo = (struct in6_pktinfo *)(CMSG_DATA(rcmsgp));
-       memset(&src_sin6, 0, sizeof(struct sockaddr_in6));
+       memset(&src_sin6, 0, sizeof(src_sin6));
 
        /* receive control msg */
        rcmsgp->cmsg_level = IPPROTO_IPV6;