Skip to contentSkip to conversation

ipp2p 0.6.1-2

PATCH In review Eicke Friedrich 2 participants 2 messages Sep 10, 2004 – Sep 12, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipp2p 0.6.1-2

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.

ipp2p/linux/net/ipv4/netfilter/ipt_ipp2p.c +2 -1
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
@@ -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) {
ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c +2 -1
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
@@ -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) {
#1 lore raw
Quoted 5 lines · Eicke Friedrich

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.

Also applied.

Regards
Patrick