summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_network.c
diff options
context:
space:
mode:
authorAbhinay Ramesh <rabhinay@vmware.com>2021-05-30 16:33:41 +0000
committerAbhinay Ramesh <rabhinay@vmware.com>2022-02-09 01:57:08 +0000
commit6cb85350df7fdcea106947fdda42a91ddebcdd5e (patch)
tree9b995fe10714480472ba3c4b842ce32d9f6e1fc2 /ospf6d/ospf6_network.c
parentb592ec5ad037723887f6ba287b202bc33a9fe8b2 (diff)
ospf6d: Stitching the auth trailer code with rest of ospf6.
Problem Statement: ================== RFC 7166 support for OSPF6 in FRR code. RCA: ==== This feature is newly supported in FRR Fix: ==== Core functionality implemented in previous commit is stitched with rest of ospf6 code as part of this commit. Risk: ===== Low risk Tests Executed: =============== Have executed the combination of commands. Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_network.c')
-rw-r--r--ospf6d/ospf6_network.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/ospf6d/ospf6_network.c b/ospf6d/ospf6_network.c
index 5961cfe66a..7501f49fe0 100644
--- a/ospf6d/ospf6_network.c
+++ b/ospf6d/ospf6_network.c
@@ -33,6 +33,7 @@
#include "ospf6_top.h"
#include "ospf6_network.h"
#include "ospf6d.h"
+#include "ospf6_message.h"
struct in6_addr allspfrouters6;
struct in6_addr alldrouters6;
@@ -60,20 +61,6 @@ static void ospf6_set_transport_class(int ospf6_sock)
#endif
}
-static void ospf6_set_checksum(int ospf6_sock)
-{
- int offset = 12;
-#ifndef DISABLE_IPV6_CHECKSUM
- if (setsockopt(ospf6_sock, IPPROTO_IPV6, IPV6_CHECKSUM, &offset,
- sizeof(offset))
- < 0)
- zlog_warn("Network: set IPV6_CHECKSUM failed: %s",
- safe_strerror(errno));
-#else
- zlog_warn("Network: Don't set IPV6_CHECKSUM");
-#endif /* DISABLE_IPV6_CHECKSUM */
-}
-
void ospf6_serv_close(int *ospf6_sock)
{
if (*ospf6_sock != -1) {
@@ -113,7 +100,6 @@ int ospf6_serv_sock(struct ospf6 *ospf6)
ospf6_reset_mcastloop(ospf6_sock);
ospf6_set_pktinfo(ospf6_sock);
ospf6_set_transport_class(ospf6_sock);
- ospf6_set_checksum(ospf6_sock);
ospf6->fd = ospf6_sock;
/* setup global in6_addr, allspf6 and alldr6 for later use */