All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eicke Friedrich <tady@gmx.net>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH] ipp2p 0.6.1-2
Date: Fri, 10 Sep 2004 13:10:58 +0200	[thread overview]
Message-ID: <41418BC2.7030705@gmx.net> (raw)

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

Hi again,

another patch for ipp2p. It covers a case that occured after the first
patch was send to the list. Please apply on top of the first patch.
Sorry for that.

Regards,
Eicke.

[-- Attachment #2: ipp2p-0.6.1-2.diff --]
[-- Type: text/plain, Size: 1598 bytes --]

diff -Nru patch-o-matic-ng-new/ipp2p/linux/net/ipv4/netfilter/ipt_ipp2p.c patch-o-matic-ng-061/ipp2p/linux/net/ipv4/netfilter/ipt_ipp2p.c
--- patch-o-matic-ng-new/ipp2p/linux/net/ipv4/netfilter/ipt_ipp2p.c	2004-09-10 11:01:56.511534576 +0200
+++ patch-o-matic-ng-061/ipp2p/linux/net/ipv4/netfilter/ipt_ipp2p.c	2004-09-10 12:35:36.131222528 +0200
@@ -44,9 +44,10 @@
     t += head_len;
 
     if (((packet_len - head_len) == 4) && (memcmp(t, "SEND", 4) == 0))  return 1;
+    if (((packet_len - head_len) == 3) && (memcmp(t, "GET", 3) == 0))  return 1;
     if (packet_len < (head_len + 10)) return 0;
 
-    if (memcmp(t, "SEND", 4) == 0){
+    if ((memcmp(t, "SEND", 4) == 0) || (memcmp(t, "GET", 3) == 0)){
         c = head_len + 4;
         t += 4;
         while (c < packet_len - 5) {
diff -Nru patch-o-matic-ng-new/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c patch-o-matic-ng-061/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c
--- patch-o-matic-ng-new/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c	2004-09-10 11:02:17.171393800 +0200
+++ patch-o-matic-ng-061/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c	2004-09-10 12:35:55.591264152 +0200
@@ -41,9 +41,10 @@
     t += head_len;
 
     if (((packet_len - head_len) == 4) && (memcmp(t, "SEND", 4) == 0))  return 1;
+    if (((packet_len - head_len) == 3) && (memcmp(t, "GET", 3) == 0))  return 1;
     if (packet_len < (head_len + 10)) return 0;
 
-    if (memcmp(t, "SEND", 4) == 0){
+    if ((memcmp(t, "SEND", 4) == 0) || (memcmp(t, "GET", 3) == 0)){
         c = head_len + 4;
         t += 4;
         while (c < packet_len - 5) {

             reply	other threads:[~2004-09-10 11:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 11:10 Eicke Friedrich [this message]
2004-09-12 22:30 ` [PATCH] ipp2p 0.6.1-2 Patrick McHardy

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=41418BC2.7030705@gmx.net \
    --to=tady@gmx.net \
    --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.