cleanup - remove config.c
Test:
git grep 'config[.]c'
comes up empty
Bug: 144730808
Test: atest clatd_test netd_integration_test
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8500881852f1255a69b49eba6354777883fe438f
diff --git a/config.h b/config.h
index 95cdefa..1ba6850 100644
--- a/config.h
+++ b/config.h
@@ -38,6 +38,14 @@
extern struct clat_config Global_Clatd_Config;
-int ipv6_prefix_equal(struct in6_addr *a1, struct in6_addr *a2);
+/* function: ipv6_prefix_equal
+ * compares the /64 prefixes of two ipv6 addresses.
+ * a1 - first address
+ * a2 - second address
+ * returns: 0 if the subnets are different, 1 if they are the same.
+ */
+static inline int ipv6_prefix_equal(struct in6_addr *a1, struct in6_addr *a2) {
+ return !memcmp(a1, a2, 8);
+}
#endif /* __CONFIG_H__ */