Re: [BUG] ebt_accept is not 64-bit clean

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
On Saturday 20 November 2004 20:10, Peter Nelson wrote:
> Bart De Schuymer wrote:
> >On Saturday 20 November 2004 01:15, Peter Nelson wrote:
> >>I was testing ebtables on my AMD64 and the among extension refused to
> >>work stating:
> >
> >Please apply the attached patch to the ebtables userspace tool and send
> > back the output of the same ebtables rule.
>
> Forget to attach the patch? =)

Oops...
patch (text/x-diff, 819 B)
--- extensions/ebt_among.c.old	2004-11-20 15:46:06.000000000 +0100
+++ extensions/ebt_among.c	2004-11-20 16:17:44.000000000 +0100
@@ -312,6 +312,8 @@ static int parse(int c, char **argv, int
 		memcpy((char *) h + old_size, wh,
 		       ebt_mac_wormhash_size(wh));
 		h->match_size = new_size - sizeof(struct ebt_entry_match);
+printf("old_size=%d,new_size=%d, sizeof=%d, msize=%d\n", old_size, new_size,
+sizeof(struct ebt_entry_match), h->match_size);
 		info = (struct ebt_among_info *) h->data;
 		if (c == AMONG_DST) {
 			ebt_check_option(flags, OPT_DST);
@@ -321,6 +323,7 @@ static int parse(int c, char **argv, int
 			ebt_check_option(flags, OPT_SRC);
 			info->wh_src_ofs =
 			    old_size - sizeof(struct ebt_entry_match);
+printf("wh_src_ofs=%d\n", info->wh_src_ofs);
 		}
 		free(*match);
 		*match = h;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.