diff -purN -X dontdiff iptables-1.3.3-20051019.o/libiptc/libip4tc.c iptables-1.3.3-20051019.w/libiptc/libip4tc.c --- iptables-1.3.3-20051019.o/libiptc/libip4tc.c 2005-06-23 04:51:18.000000000 -0400 +++ iptables-1.3.3-20051019.w/libiptc/libip4tc.c 2005-10-20 02:29:51.000000000 -0400 @@ -39,6 +39,7 @@ typedef unsigned int socklen_t; #ifdef NF_IP_DROPPING #define HOOK_DROPPING NF_IP_DROPPING #endif +#define HOOK_SOCKET NF_IP_SOCKET_IN #define STRUCT_ENTRY_TARGET struct ipt_entry_target #define STRUCT_ENTRY struct ipt_entry diff -purN -X dontdiff iptables-1.3.3-20051019.o/libiptc/libip6tc.c iptables-1.3.3-20051019.w/libiptc/libip6tc.c --- iptables-1.3.3-20051019.o/libiptc/libip6tc.c 2005-06-23 04:51:18.000000000 -0400 +++ iptables-1.3.3-20051019.w/libiptc/libip6tc.c 2005-10-20 02:29:51.000000000 -0400 @@ -34,6 +34,7 @@ typedef unsigned int socklen_t; #define HOOK_FORWARD NF_IP6_FORWARD #define HOOK_LOCAL_OUT NF_IP6_LOCAL_OUT #define HOOK_POST_ROUTING NF_IP6_POST_ROUTING +#define HOOK_SOCKET NF_IP6_SOCKET_IN #define STRUCT_ENTRY_TARGET struct ip6t_entry_target #define STRUCT_ENTRY struct ip6t_entry diff -purN -X dontdiff iptables-1.3.3-20051019.o/libiptc/libiptc.c iptables-1.3.3-20051019.w/libiptc/libiptc.c --- iptables-1.3.3-20051019.o/libiptc/libiptc.c 2005-07-31 03:04:59.000000000 -0400 +++ iptables-1.3.3-20051019.w/libiptc/libiptc.c 2005-10-20 02:29:51.000000000 -0400 @@ -57,6 +57,7 @@ static const char *hooknames[] #ifdef HOOK_DROPPING [HOOK_DROPPING] "DROPPING" #endif + [HOOK_SOCKET] "SOCKET" }; /* Convenience structures */ @@ -919,18 +920,20 @@ TC_DUMP_ENTRIES(const TC_HANDLE_T handle printf("libiptc v%s. %u bytes.\n", IPTABLES_VERSION, handle->entries->size); printf("Table `%s'\n", handle->info.name); - printf("Hooks: pre/in/fwd/out/post = %u/%u/%u/%u/%u\n", + printf("Hooks: pre/in/fwd/out/post/sock = %u/%u/%u/%u/%u/%u\n", handle->info.hook_entry[HOOK_PRE_ROUTING], handle->info.hook_entry[HOOK_LOCAL_IN], handle->info.hook_entry[HOOK_FORWARD], handle->info.hook_entry[HOOK_LOCAL_OUT], - handle->info.hook_entry[HOOK_POST_ROUTING]); - printf("Underflows: pre/in/fwd/out/post = %u/%u/%u/%u/%u\n", + handle->info.hook_entry[HOOK_POST_ROUTING], + handle->info.hook_entry[HOOK_SOCKET_IN]); + printf("Underflows: pre/in/fwd/out/post/sock = %u/%u/%u/%u/%u/%u\n", handle->info.underflow[HOOK_PRE_ROUTING], handle->info.underflow[HOOK_LOCAL_IN], handle->info.underflow[HOOK_FORWARD], handle->info.underflow[HOOK_LOCAL_OUT], - handle->info.underflow[HOOK_POST_ROUTING]); + handle->info.underflow[HOOK_POST_ROUTING], + handle->info.underflow[HOOK_SOCKET_IN]); ENTRY_ITERATE(handle->entries->entrytable, handle->entries->size, dump_entry, handle);