search for: xt_entry_target

Displaying 4 results from an estimated 4 matches for "xt_entry_target".

2019 Oct 27
0
[Bug 976] invalid conversion from 'void*' to 'xt_entry_target*'
...- There is another problem with this function. Pointer arithmetic on void pointers in illegal in either C and C++, it is an extension of GCC: https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html To be compliant to both standards, the expression should look something like this. return (xt_entry_target *)((char *)e + e->target_offset); -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20191027/fc1683f2/attachment.html&gt...
2016 Feb 16
0
[Bug 976] invalid conversion from 'void*' to 'xt_entry_target*'
https://bugzilla.netfilter.org/show_bug.cgi?id=976 Pablo Neira Ayuso <pablo at netfilter.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |pablo at netfilter.org --- Comment #1 from Pablo
2019 Oct 03
1
[PATCH net-next] net, uapi: fix -Wpointer-arith warnings
...uapi/linux/virtio_ring.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) --- a/include/uapi/linux/netfilter_arp/arp_tables.h +++ b/include/uapi/linux/netfilter_arp/arp_tables.h @@ -199,7 +199,7 @@ struct arpt_get_entries { /* Helper functions */ static __inline__ struct xt_entry_target *arpt_get_target(struct arpt_entry *e) { - return (void *)e + e->target_offset; + return (struct xt_entry_target *)((char *)e + e->target_offset); } /* --- a/include/uapi/linux/netfilter_bridge/ebtables.h +++ b/include/uapi/linux/netfilter_bridge/ebtables.h @@ -194,7 +194,7 @@ struct ebt...
2007 Mar 21
7
how can i compile tc
Hi, i''m just new here, i''m searching for how to compile tc (if i''ve understood correctly, i must compile the whole iproute2 thing). So i did like the read me file said: ------ 1. Look at start of Makefile and set correct values for: KERNEL_INCLUDE ----- i did that, and then i doesn''t understand a damn thing about the reste of the the 1st step about ADDLIB