ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Алексей <aleksey@ecolas.ru>
To: "Pavel S. Khmelinsky" <community@altlinux.ru>
Subject: Re[2]: [Comm] patch-o-matic
Date: Thu, 24 Jun 2004 10:30:20 +0400
Message-ID: <142262975.20040624103020@ecolas.ru> (raw)
In-Reply-To: <40D96C86.6080205@yauza.ru>

Hello Pavel,

Wednesday, June 23, 2004, 3:41:58 PM, you wrote:

PSK> Алексей wrote:
>> Hello community,
>> 
>>   Не получается натянуть патч.
>>   OC allmaster v2.2
>>   kernel-2.4.20-alt15
>>   iptables-1.2.7a
>> 
>>   взял src файлы ядра и iptables разобрал,
>>   применил на ядро ./runme --batch pending
>>   после этого rpm --bp kernel24.spec
>>   вроде поначалу все нормально потом вот такое :
>> 
>>   .........
>> + patch -s -p1
>> + cat aa_patches/00_comx-driver-compile-1
>> + patch -s -p1
>> + cat aa_patches/00_conntrack-hash-1
>> + patch -s -p1
>> 1 out of 2 hunks FAILED -- saving rejects to file
>> net/ipv4/netfilter/ip_conntrack_core.c.rej
>> error: Bad exit status from /home/aleksey/tmp/rpm-tmp.34667 (%prep)
PSK> Вы пытаетесь сразу rpm'ку собрать. Сначала попробуйте взять чистые сорцы ядра и
PSK> применить на них нужный Вам патч вручную. Очень может быть что альтовые патчи
PSK> конфликтуют с тем что пытаетесь наложить Вы.
PSK> Также взгляните на файл
PSK> net/ipv4/netfilter/ip_conntrack_core.c
PSK> в исходниках ядра и посмотрите как он изменяется патчем, может быть патч надо
PSK> исправить.

Остается rej файл вот с таким текстом

***************
*** 113,124 ****
        dump_tuple(tuple);
  #endif
        /* ntohl because more differences in low bits. */
        /* To ensure that halves of the same connection don't hash
-          clash, we add the source per-proto again. */
-       return (ntohl(tuple->src.ip + tuple->dst.ip
-                    + tuple->src.u.all + tuple->dst.u.all
-                    + tuple->dst.protonum)
-               + ntohs(tuple->src.u.all))
                % ip_conntrack_htable_size;
  }

--- 116,128 ----
        dump_tuple(tuple);
  #endif
        /* ntohl because more differences in low bits. */
+       /* ports must be outside ntohl or else they will add to high bits. */
        /* To ensure that halves of the same connection don't hash
+          clash, we use a multiplier for the src port. */
+       return (ntohl(tuple->src.ip + tuple->dst.ip)
+               + HASH_CONNTRACK_SRC_MULTIPLIER * ntohs (tuple->src.u.all)
+               + ntohs (tuple->dst.u.all)
+               + tuple->dst.protonum)
                % ip_conntrack_htable_size;
  }


если я правильно понял ищется текст с "-" и заменятеся на текст с "+"

так вот текса с минусами нету в ip_conntrack_core.c компилятор на это
и жалуется ))
Если есть аська может по аське попробуем победить это, если конечно не
напряжно.

Спасибо за ответ.


-- 
Best regards,
 Алексей                            mailto:aleksey@ecolas.ru



  reply	other threads:[~2004-06-24  6:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-23  8:56 Алексей
2004-06-23 11:41 ` Pavel S. Khmelinsky
2004-06-24  6:30   ` Алексей [this message]
2004-06-24 12:45     ` Re[3]: " Алексей

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=142262975.20040624103020@ecolas.ru \
    --to=aleksey@ecolas.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git