Skip to content

Commit

Permalink
firewall: Fix suggested code patch for iptables.h
Browse files Browse the repository at this point in the history
Previous suggestion was evidently broken due to pointer
arithmetic issues.

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Aug 23, 2010
1 parent 01574c9 commit 27def60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xorp/site_scons/config/allconfig.py
Expand Up @@ -793,7 +793,7 @@ def DoAllConfig(env, conf, host_os):
print " ipt_get_target(struct ipt_entry *e)"
print "{"
print " /* BEN: Was void* */"
print " return (struct ipt_entry_target *)e + e->target_offset;"
print " return (struct ipt_entry_target *)((char*)e + e->target_offset);"
print "}"
print "\nYou will also want to edit similar code around line 282 of:"
print "/usr/include/linux/netfilter_ipv6/ip6_tables.h"
Expand Down

0 comments on commit 27def60

Please sign in to comment.