summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_auth.h')
-rw-r--r--ospfd/ospf_auth.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ospfd/ospf_auth.h b/ospfd/ospf_auth.h
new file mode 100644
index 0000000..6f6d3db
--- /dev/null
+++ b/ospfd/ospf_auth.h
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2023 Amnesh Inc.
+ * Mahdi Varasteh
+ */
+
+#ifndef _ZEBRA_OSPF_AUTH_H
+#define _ZEBRA_OSPF_AUTH_H
+
+#include <ospfd/ospf_gr.h>
+#include <ospfd/ospf_packet.h>
+
+int ospf_auth_check(struct ospf_interface *oi, struct ip *iph, struct ospf_header *ospfh);
+int ospf_auth_check_digest(struct ospf_interface *oi, struct ip *iph, struct ospf_header *ospfh);
+int ospf_auth_make(struct ospf_interface *oi, struct ospf_packet *op);
+int ospf_auth_make_digest(struct ospf_interface *oi, struct ospf_packet *op);
+int ospf_auth_type(struct ospf_interface *oi);
+int ospf_auth_make_data(struct ospf_interface *oi, struct ospf_header *ospfh);
+
+#endif /* _ZEBRA_OSPF_AUTH_H */