diff options
author | Marius Halden <marius.h@lden.org> | 2016-01-11 01:37:26 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-01-11 01:37:26 +0100 |
commit | afc2c4818834efb1fd45c267515ef26e674f63f8 (patch) | |
tree | ef1f8d103a0bd852f16057c2f6d7e76bb2a626fd /data_structures | |
download | spamd-patches-afc2c4818834efb1fd45c267515ef26e674f63f8.tar.gz spamd-patches-afc2c4818834efb1fd45c267515ef26e674f63f8.tar.bz2 spamd-patches-afc2c4818834efb1fd45c267515ef26e674f63f8.tar.xz |
initial
Diffstat (limited to 'data_structures')
-rw-r--r-- | data_structures | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/data_structures b/data_structures new file mode 100644 index 0000000..3a1c570 --- /dev/null +++ b/data_structures @@ -0,0 +1,27 @@ + +struct ipv6 { + union { + struct in6_addr addr; + u_int32_t addr32[4]; + } _ipv6; +#define addr32 _ipv6.addr32 +}; + +struct cidr { + sa_family_t ai_family; + union { + u_int32_t addr4; + struct ipv6 addr6; + }; + u_int8_t bits; +}; + +struct bl { + sa_family_t ai_family; + union { + u_int32_t addr4; + struct ipv6 addr6; + }; + int8_t b; + int8_t w; +}; |