NET: RST-Patch fuer dyn (nochmal)
Hi Freaks, ich habe in der SDB von dem neuen Patch gelesen, der beim masquerading zum ISP mit dynamischer IP-Adressvergabe helfen soll. Siehe file: .../support-db/sdb/dynippatch.html Nun habe ich mir den Patch organisiert und habe versucht, der (etwas undeutschen (;-)) Anleitung zu folgen:
Zum Aktivieren gebe man: echo 7 > /proc/sys/net/ipv4/ip_dynaddr ein. Mehr Infos in /usr/src/linux-2.0.33-suse/Documentation/networking/ip_dynaddr.txt (nachdem man den Patch eingespielt hat) Den Patch passt für 2.0.33 ohne Erik's obigen Patch, beim SuSE-Kernel also von Hand anpassen in linux/net/ipv4/tcp_output.c Hier findet man den RST-Patch: <A HREF="http://www.image.dk/~ehcorry/linux/"><A HREF="http://www.image.dk/~ehcorry/linux/</A">http://www.image.dk/~ehcorry/linux/
Nur leider funktioniert bei mir das Patchen ueberhaupt nicht: - kopieren der Kernelsources /usr/src/linux-2.0.33-suse nach /usr/linux-2.0.33-suse-dynip - anlegen/kontrollieren der benoetigten Symlinks: lrwxrwxrwx 1 root root 18 Feb 25 12:24 linux -> linux-2.0.33-suse/ drwxr-xr-x 15 root root 1024 Feb 25 13:12 linux-2.0.33-suse/ drwxr-xr-x 15 root root 1024 Feb 25 21:15 linux-2.0.33-suse-dynip/ lrwxrwxrwx 1 root root 23 Feb 25 21:09 linux-dynip -> linux-2.0.33-suse-dynip/ -rwxr----- 1 root root 8534 Feb 25 21:05 rst-2_0_33.patch - wie "man patch" vorschlaegt, gebe ich nun "patch < rst-2_0_33.patch" ein, folgende Antwort: Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -u --recursive linux/Documentation/networking/ip_dynaddr.txt linux-dynip/Documentation/networking/ip_dynaddr.txt |--- linux/Documentation/networking/ip_dynaddr.txt Wed Jan 28 20:31:51 1998 |+++ linux-dynip/Documentation/networking/ip_dynaddr.txt Wed Jan 28 20:42 :52 1998 -------------------------- Patching file linux/Documentation/networking/ip_dynaddr.txt using Plan A... Hunk #1 failed at 1. Hunk #2 failed at 16. 2 out of 2 hunks failed--saving rejects to linux/Documentation/networking/ip_dynaddr.txt.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -u --recursive linux/net/ipv4/ip_masq.c linux-dynip/net/ipv4/ip_masq.c |--- linux/net/ipv4/ip_masq.c Wed Jan 28 20:32:10 1998 |+++ linux-dynip/net/ipv4/ip_masq.c Wed Jan 28 20:29:18 1998 -------------------------- Patching file linux/net/ipv4/ip_masq.c using Plan A... Hunk #1 failed at 762. Hunk #2 failed at 974. 2 out of 2 hunks failed--saving rejects to linux/net/ipv4/ip_masq.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -u --recursive linux/net/ipv4/ip_output.c linux-dynip/net/ipv4/ip_output.c |--- linux/net/ipv4/ip_output.c Wed Jan 28 20:32:10 1998 |+++ linux-dynip/net/ipv4/ip_output.c Wed Jan 28 20:25:24 1998 -------------------------- Patching file linux/net/ipv4/ip_output.c using Plan A... Hunk #1 failed at 69. Hunk #2 failed at 81. Hunk #3 failed at 110. Hunk #4 failed at 124. Hunk #5 failed at 137. 5 out of 5 hunks failed--saving rejects to linux/net/ipv4/ip_output.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -u --recursive linux/net/ipv4/tcp_output.c linux-dynip/net/ipv4/tcp_output.c |--- linux/net/ipv4/tcp_output.c Wed Jan 28 20:32:11 1998 |+++ linux-dynip/net/ipv4/tcp_output.c Wed Jan 28 20:25:24 1998 -------------------------- Patching file linux/net/ipv4/tcp_output.c using Plan A... Hunk #1 failed at 546. Hunk #2 failed at 572. 2 out of 2 hunks failed--saving rejects to linux/net/ipv4/tcp_output.c.rej Hmm... Ignoring the trailing garbage. done ..... und eine Menge Reject-Files !!!!! Was laeuft denn hier falsch??? Ich sehe keine auswertbare Fehlermeldung. "failed" kann ja jeder sagen, aber warum? Habe die originalen Dateien ueberprueft -- die zu patchenden Zeilen stehen an den richtigen Stellen?! Wer hat eine Idee, wie ich solche Patche verarbeiten soll (lesen und zu Fuss machen ???? (;-)) -- Gruss Juergen ''~`` ( o o ) +-----------------.oooO--(_)--Oooo.---------------------------+ | Juergen Lennefer email: J.Lennefer@T-Online.de | | Am Lindchen 28 phone: +49-2268-8729 | | D-51515 Kuerten .oooO fax: +49-2268-90200 | | ( ) Oooo. | +------------------\ (----( )-------------------------------+ \_) ) / (_/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung. -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.de schicken, mit dem Text: unsubscribe suse-linux
participants (1)
-
J.Lennefer@t-online.de