Displaying 2 results from an estimated 2 matches for "ipt_get_target".
2003 Apr 19
4
[Bug 82] iptables doesn't compile if no optimization flags are set
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=82
laforge@netfilter.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rusty@netfilter.org
Severity|normal |minor
Status|NEW
2019 Oct 03
1
[PATCH net-next] net, uapi: fix -Wpointer-arith warnings
...+ return (struct ebt_entry_target *)((char *)e + e->target_offset);
}
/* {g,s}etsockopt numbers */
--- a/include/uapi/linux/netfilter_ipv4/ip_tables.h
+++ b/include/uapi/linux/netfilter_ipv4/ip_tables.h
@@ -222,7 +222,7 @@ struct ipt_get_entries {
static __inline__ struct xt_entry_target *
ipt_get_target(struct ipt_entry *e)
{
- return (void *)e + e->target_offset;
+ return (struct xt_entry_target *)((char *)e + e->target_offset);
}
/*
--- a/include/uapi/linux/netfilter_ipv6/ip6_tables.h
+++ b/include/uapi/linux/netfilter_ipv6/ip6_tables.h
@@ -262,7 +262,7 @@ struct ip6t_get_entries {
s...