All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andras Kis-Szabo <kisza@securityaudit.hu>
To: netfilter-devel@lists.samba.org
Cc: Paul P Komkoff Jr <i@stingr.net>
Subject: Re: [CRAP] Some patches
Date: Mon, 17 Jun 2002 10:45:38 +0200	[thread overview]
Message-ID: <20020617104538.B8138@sch.bme.hu> (raw)
In-Reply-To: <20020616200239.GI23720@stingr.net>

Paul P Komkoff Jr ................................... (2002. június 17.)

 Hi!

> But ipv6 stuff seems awful :( it just duplicating one function already
> present in ipv6 code :( and doing it without static keyword ...
Please, read the code again!
In firewall I had to use the ESP and AH headers, too, but the core kernel does
not support it!
But the other side: yes, it's awful, I now. All the code contain the some
search and parser (not exactly the same, but can be changed). While the
patches are in the p-o-m and they are independent ones, I can not create exact
debedencies. (The core ipv6 code will be changed soon, after it the search
function will be placed into it - I can remove it from the extensions.)

> diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet a/net/ipv6/Makefile.in linux-2.4.19-pre10-ac2-s3/net/ipv6/Makefile.in
> diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet a/net/ipv6/exthdrs.c linux-2.4.19-pre10-ac2-s3/net/ipv6/exthdrs.c
> --- a/net/ipv6/exthdrs.c	Sat Jun 15 12:49:53 2002
> +++ linux-2.4.19-pre10-ac2-s3/net/ipv6/exthdrs.c	Fri Jun 14 20:03:51 2002
> @@ -20,6 +20,8 @@
>   *				  tlv options.
>   */
>  
> +#include <linux/config.h>
> +#include <linux/module.h>
>  #include <linux/errno.h>
>  #include <linux/types.h>
>  #include <linux/socket.h>
> @@ -729,6 +731,8 @@
>  		 (nexthdr == NEXTHDR_NONE)	||
>  		 (nexthdr == NEXTHDR_DEST) );
>  }
> +
> +EXPORT_SYMBOL(ipv6_ext_hdr);
>  
>  /*
>   * Skip any extension headers. This is used by the ICMP module.
It would be nice, but it is not the Netfilter code. (And these patches are in
p-o-m.)
The exported function:
int ipv6_ext_hdr(u8 nexthdr)
{
        return ( (nexthdr == NEXTHDR_HOP)       ||
                 (nexthdr == NEXTHDR_ROUTING)   ||
                 (nexthdr == NEXTHDR_FRAGMENT)  ||
                 (nexthdr == NEXTHDR_AUTH)      ||
                 (nexthdr == NEXTHDR_NONE)      ||
                 (nexthdr == NEXTHDR_DEST) );
}

> -int ipv6_ext_hdr(u8 nexthdr)
> -{
> -        return ( (nexthdr == NEXTHDR_HOP)       ||
> -                 (nexthdr == NEXTHDR_ROUTING)   ||
> -                 (nexthdr == NEXTHDR_FRAGMENT)  ||
> -                 (nexthdr == NEXTHDR_AUTH)      ||
> -                 (nexthdr == NEXTHDR_ESP)       ||
> -                 (nexthdr == NEXTHDR_NONE)      ||
> -                 (nexthdr == NEXTHDR_DEST) );
> -}

(Yes, I know that is a real problem, I'll solve it gracefullly, I promise! :) )

Regards,

	kisza

-- 
    Andras Kis-Szabo       Security Development, Design and Audit
-------------------------/        Zorp, NetFilter and IPv6
 kisza@SecurityAudit.hu /-----Member of the BUTE-MIS-SEARCHlab---------->

  reply	other threads:[~2002-06-17  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-16 20:02 [CRAP] Some patches Paul P Komkoff Jr
2002-06-17  8:45 ` Andras Kis-Szabo [this message]
2002-07-05 14:08 ` Harald Welte
2002-07-08  7:31   ` Andras Kis-Szabo

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=20020617104538.B8138@sch.bme.hu \
    --to=kisza@securityaudit.hu \
    --cc=i@stingr.net \
    --cc=netfilter-devel@lists.samba.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.