addr.c, linux.h, yaid.h: Move things out of the address-type list macro.
[yaid] / yaid.h
diff --git a/yaid.h b/yaid.h
index 85ad397..f8f6470 100644 (file)
--- a/yaid.h
+++ b/yaid.h
@@ -108,8 +108,8 @@ struct sockpat {
 };
 
 #define ADDRTYPES(_)                                                   \
-  _(ipv4, IPV4, INET, "IPv4", 32)                                      \
-  _(ipv6, IPV6, INET6, "IPv6", 128)
+  _(ipv4, IPV4)                                                                \
+  _(ipv6, IPV6)
 
 struct addrops {
   int af;
@@ -125,14 +125,14 @@ struct addrops {
 };
 
 enum {
-#define DEFADDR(ty, TY, af, name, len) ADDR_##TY,
+#define DEFADDR(ty, TY) ADDR_##TY,
   ADDRTYPES(DEFADDR)
 #undef DEFADDR
   ADDR_LIMIT
 };
 
 extern const struct addrops addroptab[];
-#define OPS_SYS(ty, TY, af, name, len)                                 \
+#define OPS_SYS(ty, TY)                                        \
   extern const struct addrops_sys addrops_sys_##ty;
 ADDRTYPES(OPS_SYS)
 #undef OPS_SYS