All of lore.kernel.org
 help / color / mirror / Atom feed
* About a patch to unclean module.
@ 2002-06-21 19:00 Maciej Soltysiak
  2002-06-22 14:51 ` Fabrice MARIE
  2002-06-22 16:44 ` Harald Welte
  0 siblings, 2 replies; 6+ messages in thread
From: Maciej Soltysiak @ 2002-06-21 19:00 UTC (permalink / raw)
  To: netfilter-devel

Hello,

I may say now, that I have finished writing the module, updating the
lipipt_unclean.c, I have created the patches to the netfilter tree.

But, suppose, Harald applies the patch. It will change libipt_unclean.c
in a way, that withougt running patch-o-matic it will not compile, because
it uses an include file
KERNEL_DIR/include/linux/netfilter_ipv4/ipt_unclean.h which will be only
available after patching the kernel tree.

So how do we solve that?
I see it by adding ipt_unclean.h to the netfilter tree.

Or maybe I am missing something or forgetting about something, some simple
solution.


Regards,
Maciej Soltysiak

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About a patch to unclean module.
  2002-06-21 19:00 About a patch to unclean module Maciej Soltysiak
@ 2002-06-22 14:51 ` Fabrice MARIE
  2002-06-22 16:43   ` Harald Welte
  2002-06-24  9:39   ` Maciej Soltysiak
  2002-06-22 16:44 ` Harald Welte
  1 sibling, 2 replies; 6+ messages in thread
From: Fabrice MARIE @ 2002-06-22 14:51 UTC (permalink / raw)
  To: Maciej Soltysiak, netfilter-devel


Hello Maciej,

On Saturday 22 June 2002 03:00, Maciej Soltysiak wrote:
> Hello,
> I may say now, that I have finished writing the module, updating the
> lipipt_unclean.c, I have created the patches to the netfilter tree.
> But, suppose, Harald applies the patch. It will change libipt_unclean.c
> in a way, that withougt running patch-o-matic it will not compile, because
> it uses an include file
> KERNEL_DIR/include/linux/netfilter_ipv4/ipt_unclean.h which will be only
> available after patching the kernel tree.
> So how do we solve that?

The easiest way is to use the userspace patching facility of patch-o-matic.
Just look at extra/ipt_REJECT-fake-source.patch and especially
extra/ipt_REJECT-fake-source.patch.userspace for an example of userspace
patching.

> I see it by adding ipt_unclean.h to the netfilter tree.
> Or maybe I am missing something or forgetting about something, some simple
> solution.
> Regards,
> Maciej Soltysiak

Have a nice day,

Fabrice.
--
Fabrice MARIE
Senior R&D Engineer
Celestix Networks
http://www.celestix.com/

"Silly hacker, root is for administrators"
       -Unknown

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About a patch to unclean module.
  2002-06-22 14:51 ` Fabrice MARIE
@ 2002-06-22 16:43   ` Harald Welte
  2002-06-24  9:39   ` Maciej Soltysiak
  1 sibling, 0 replies; 6+ messages in thread
From: Harald Welte @ 2002-06-22 16:43 UTC (permalink / raw)
  To: Fabrice MARIE; +Cc: Maciej Soltysiak, netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

On Sat, Jun 22, 2002 at 10:51:10PM +0800, Fabrice MARIE wrote:
> 
> Hello Maciej,
> 
> On Saturday 22 June 2002 03:00, Maciej Soltysiak wrote:
> > Hello,
> > I may say now, that I have finished writing the module, updating the
> > lipipt_unclean.c, I have created the patches to the netfilter tree.
> > But, suppose, Harald applies the patch. It will change libipt_unclean.c
> > in a way, that withougt running patch-o-matic it will not compile, because
> > it uses an include file
> > KERNEL_DIR/include/linux/netfilter_ipv4/ipt_unclean.h which will be only
> > available after patching the kernel tree.
> > So how do we solve that?
> 
> The easiest way is to use the userspace patching facility of patch-o-matic.

GNAH!  As soon as somebody is using this evil confusing hack without it
being absolutely necessarry, I'll start flaming him.

See my other mail in this thread.

> Fabrice.

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About a patch to unclean module.
  2002-06-21 19:00 About a patch to unclean module Maciej Soltysiak
  2002-06-22 14:51 ` Fabrice MARIE
@ 2002-06-22 16:44 ` Harald Welte
  2002-06-24  9:47   ` Maciej Soltysiak
  1 sibling, 1 reply; 6+ messages in thread
From: Harald Welte @ 2002-06-22 16:44 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

On Fri, Jun 21, 2002 at 09:00:04PM +0200, Maciej Soltysiak wrote:
> Hello,
> 
> I may say now, that I have finished writing the module, updating the
> lipipt_unclean.c, I have created the patches to the netfilter tree.
> 
> But, suppose, Harald applies the patch. It will change libipt_unclean.c
> in a way, that withougt running patch-o-matic it will not compile, because
> it uses an include file
> KERNEL_DIR/include/linux/netfilter_ipv4/ipt_unclean.h which will be only
> available after patching the kernel tree.
> 
> So how do we solve that?

this is a comon problem, and it's always solved the same way: Put the
kernel include file into userspace/include/linux/netfilter_ipv4/.

> Maciej Soltysiak

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About a patch to unclean module.
  2002-06-22 14:51 ` Fabrice MARIE
  2002-06-22 16:43   ` Harald Welte
@ 2002-06-24  9:39   ` Maciej Soltysiak
  1 sibling, 0 replies; 6+ messages in thread
From: Maciej Soltysiak @ 2002-06-24  9:39 UTC (permalink / raw)
  To: Fabrice MARIE; +Cc: netfilter-devel

> The easiest way is to use the userspace patching facility of patch-o-matic.
> Just look at extra/ipt_REJECT-fake-source.patch and especially
> extra/ipt_REJECT-fake-source.patch.userspace for an example of userspace
> patching.
Argh, how obvious. :)
Thank you.

> Fabrice.
Maciej

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: About a patch to unclean module.
  2002-06-22 16:44 ` Harald Welte
@ 2002-06-24  9:47   ` Maciej Soltysiak
  0 siblings, 0 replies; 6+ messages in thread
From: Maciej Soltysiak @ 2002-06-24  9:47 UTC (permalink / raw)
  To: Harald Welte; +Cc: netfilter-devel

> this is a comon problem, and it's always solved the same way: Put the
> kernel include file into userspace/include/linux/netfilter_ipv4/.
Yes Sir.
 
Maciej

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-24  9:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-21 19:00 About a patch to unclean module Maciej Soltysiak
2002-06-22 14:51 ` Fabrice MARIE
2002-06-22 16:43   ` Harald Welte
2002-06-24  9:39   ` Maciej Soltysiak
2002-06-22 16:44 ` Harald Welte
2002-06-24  9:47   ` Maciej Soltysiak

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.