All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Marcus Sundberg <marcus@ingate.com>
Cc: Harald Welte <laforge@netfilter.org>,
	netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] nfsim: Support more netfilter modules
Date: Thu, 15 Dec 2005 02:15:16 +0100	[thread overview]
Message-ID: <43A0C3A4.1060703@trash.net> (raw)
In-Reply-To: <439ED1C5.7070103@ingate.com>

Marcus Sundberg wrote:
> Hi,
> 
> this patch adds nfsim support for building most of the netfilter stuff
> in 2.6.15. The things still not compiling are CONFIG_IP_NF_CONNTRACK_NETLINK
> and CONFIG_IP_NF_MATCH_STRING

Looks good. Harald is currently working on nfsim so I'll leave
it to him to apply your patch.

> +/* div64.h */
> +
> +#if BITS_PER_LONG == 64
> +# define do_div(n,base) ({					\
> +	uint32_t __base = (base);				\
> +	uint32_t __rem;						\
> +	__rem = ((uint64_t)(n)) % __base;			\
> +	(n) = ((uint64_t)(n)) / __base;				\
> +	__rem;							\
> + })
> +#elif BITS_PER_LONG == 32

Just using the 64 bit version unconditionally is fine in userspace
and avoids the need for __div64_32.

  parent reply	other threads:[~2005-12-15  1:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13 13:51 [PATCH] nfsim: Support more netfilter modules Marcus Sundberg
2005-12-13 18:47 ` Marcus Sundberg
2005-12-15  2:21   ` Patrick McHardy
2005-12-15  1:15 ` Patrick McHardy [this message]
2006-01-06 14:40 ` Harald Welte
2006-01-12 10:25   ` Marcus Sundberg
2006-01-12 11:14     ` Harald Welte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A0C3A4.1060703@trash.net \
    --to=kaber@trash.net \
    --cc=laforge@netfilter.org \
    --cc=marcus@ingate.com \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.