summaryrefslogtreecommitdiffstats
path: root/ipv6.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:15:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:15:13 +0000
commit5fb98df7b32417914e9b282e91987199416d0a97 (patch)
treed674271dc3d99faa1a75fa689888ee3d3aec4e10 /ipv6.h
parentInitial commit. (diff)
downloadipcalc-ng-5fb98df7b32417914e9b282e91987199416d0a97.tar.xz
ipcalc-ng-5fb98df7b32417914e9b282e91987199416d0a97.zip
Adding upstream version 1.0.3.upstream/1.0.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipv6.h')
-rw-r--r--ipv6.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/ipv6.h b/ipv6.h
new file mode 100644
index 0000000..b1ce884
--- /dev/null
+++ b/ipv6.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2019 Nikos Mavrogiannopoulos
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License, version 2,
+ * as published by the Free Software Foundation.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef IPV6_H
+#define IPV6_H
+
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
+void ipv6_add(struct in6_addr *a, const struct in6_addr *b);
+void ipv6_or1(struct in6_addr *a, unsigned bit);
+void ipv6_orm(struct in6_addr *a, unsigned bit);
+int ipv6_cmp(struct in6_addr *a, struct in6_addr *b);
+
+#endif