All of lore.kernel.org
 help / color / mirror / Atom feed
From: Massimiliano Cuzzoli <mcuzzoli@mbigroup.it>
To: Sumit Pandya <sumit@elitecore.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Problem with extended-match deletion
Date: Tue, 19 Aug 2003 16:14:11 +0200	[thread overview]
Message-ID: <3F4230B3.9090808@mbigroup.it> (raw)
In-Reply-To: <018401c36659$e505a220$010f430a@elite.co.in>

Ok Sumit,
now perhaps I've found my error:
I define:

static struct iptables_match bwcontrol = {
         NULL,
         "bwcontrol",
         NETFILTER_VERSION,
         IPT_ALIGN(sizeof(struct ipt_bwctrl_info)),
-->>>>  IPT_ALIGN(sizeof(struct ipt_bwctrl_info)),
         &help_bwcontrol,
         &init_bwcontrol,
         &parse_bwcontrol,
         &final_check,
         &print_bwcontrol,
         &save_bwcontrol,
         opts
};

Thank you very much!!!

Sumit Pandya wrote:
> I think you have overlooked some text from my previous reply
> 
>>>Are you sure you not changing (void*) matchinfo structure from
> 
> matchentry
> 
>>>function within kernel module?
> 
>     From your reply it seems that bwcontrol_checkentry is doing what I
> doubted. If it is so then in your userland library you need this kind of
> defination
> static
> struct iptables_match bwcontrol = {
>         NULL,
>         "bwcontrol",
>         NETFILTER_VERSION,
>         IPT_ALIGN(sizeof(struct ipt_bwctrl_info)),
>         offsetof(struct ipt_bwctrl_info, original),
>         &help_bwcontrol,
>         &init_bwcontrol,
>         &parse_bwcontrol,
>         &final_check,
>         &print_bwcontrol,
>         &save_bwcontrol,
>         opts
> };
> --Sumit

  parent reply	other threads:[~2003-08-19 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030819102424.16725.44717.Mailman@kashyyyk>
     [not found] ` <012a01c36651$0889f970$010f430a@elite.co.in>
2003-08-19 13:37   ` Problem with extended-match deletion Massimiliano Cuzzoli
     [not found]     ` <018401c36659$e505a220$010f430a@elite.co.in>
2003-08-19 14:14       ` Massimiliano Cuzzoli [this message]
2003-08-18 15:34 Massimiliano Cuzzoli

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=3F4230B3.9090808@mbigroup.it \
    --to=mcuzzoli@mbigroup.it \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=sumit@elitecore.com \
    /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.