All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Problems patching kernel 2.4.19-r9
@ 2002-10-20  2:16 jb
  2002-10-20  8:20 ` Stef Coene
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jb @ 2002-10-20  2:16 UTC (permalink / raw)
  To: lartc

A question about the tc binary and diff file that are
included in htb3.6-020525.tgz. I can't seem to patch tc
in the source tree, and that has made me hesitate to
alternatively substitute the native /usr/sbin/tc for
the binary supplied with the patch materials. I'm
running kernel 2.4.19-r9, and when I run 

xingu:/usr/src/linux #patch -p1 --dry-run <
../htb3.6.tc.diff

the result is:

patching file tc/q_htb.c
can't find file to patch at input line 312
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
------------------
|--- iproute2/tc/Makefile     Tue Jul 6 1999
|+++ iproute2new/tc/Makefile  Thu May 9 2002
------------------
File to patch:

Does anyone know what's going on here and how I can
proceed safely?

Thanks for any advice.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] Problems patching kernel 2.4.19-r9
  2002-10-20  2:16 [LARTC] Problems patching kernel 2.4.19-r9 jb
@ 2002-10-20  8:20 ` Stef Coene
  2002-10-20 14:25 ` jb
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2002-10-20  8:20 UTC (permalink / raw)
  To: lartc

On Sunday 20 October 2002 04:16, jb@schatz.com wrote:
> A question about the tc binary and diff file that are
> included in htb3.6-020525.tgz. I can't seem to patch tc
> in the source tree, and that has made me hesitate to
> alternatively substitute the native /usr/sbin/tc for
> the binary supplied with the patch materials. I'm
> running kernel 2.4.19-r9, and when I run
>
> xingu:/usr/src/linux #patch -p1 --dry-run <
> ../htb3.6.tc.diff
>
> the result is:
>
> patching file tc/q_htb.c
> can't find file to patch at input line 312
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> ------------------
>
> |--- iproute2/tc/Makefile     Tue Jul 6 1999
> |+++ iproute2new/tc/Makefile  Thu May 9 2002
>
> ------------------
> File to patch:
>
> Does anyone know what's going on here and how I can
> proceed safely?
You want to patch iproute2.  So download the iproute2 source and patch it :)  
You are trying to patch the kernel source.

iproute2 source :
ftp://ftp.inr.ac.ru/ip-routing/

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] Problems patching kernel 2.4.19-r9
  2002-10-20  2:16 [LARTC] Problems patching kernel 2.4.19-r9 jb
  2002-10-20  8:20 ` Stef Coene
@ 2002-10-20 14:25 ` jb
  2002-10-20 14:59 ` Werner Almesberger
  2002-10-20 20:10 ` Don Gould
  3 siblings, 0 replies; 5+ messages in thread
From: jb @ 2002-10-20 14:25 UTC (permalink / raw)
  To: lartc

>So download the iproute2 source and patch it :)

:( Background explanation: The HTB on-line manual says
simply: "Also you will have to use patched tc tool." To
my newbie eye, this is vague and incomplete, hence my
query.

Answer: In fact, I have iproute-20010824-r1 in the
sources. No matter, the output is the same:

Upon trying again to "dry-run" patch from within
/usr/src/linux and responding either "iproute2" or
"iproute" to the returned query "File to patch:", both
tests return "No such file or directory".

Please allow me one further question:  As I do not wish
to design complicated traffic-shaping rules for now,
could I simply use the earlier version of HTB (HTB2 ?)
which is already in the 2.4.19-9 kernel I have
installed? I understand that the commands may be
different. If using this earlier version is feasible,
please point me to the command reference.

I have learned much in a very short time from reading
the recent postings of Stef Coene and others on the
LARTC. Thank you to you and everyone participating on
the list.

J. B. Schatz
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] Problems patching kernel 2.4.19-r9
  2002-10-20  2:16 [LARTC] Problems patching kernel 2.4.19-r9 jb
  2002-10-20  8:20 ` Stef Coene
  2002-10-20 14:25 ` jb
@ 2002-10-20 14:59 ` Werner Almesberger
  2002-10-20 20:10 ` Don Gould
  3 siblings, 0 replies; 5+ messages in thread
From: Werner Almesberger @ 2002-10-20 14:59 UTC (permalink / raw)
  To: lartc

jb@schatz.com wrote:
> could I simply use the earlier version of HTB (HTB2 ?)
> which is already in the 2.4.19-9 kernel I have
> installed?

I don't know about 2.4.19-9, but if you use 2.4.20-pre6 or newer,
the procedure is as follows:

$ wget http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz
$ tar xfz iproute2-2.4.7-now-ss010824.tar.gz
$ mkdir htb
$ tar xCfz htb htb3.6-020525.tgz
$ patch -s -p1 -d iproute2 <htb/htb3.6_tc.diff

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] Problems patching kernel 2.4.19-r9
  2002-10-20  2:16 [LARTC] Problems patching kernel 2.4.19-r9 jb
                   ` (2 preceding siblings ...)
  2002-10-20 14:59 ` Werner Almesberger
@ 2002-10-20 20:10 ` Don Gould
  3 siblings, 0 replies; 5+ messages in thread
From: Don Gould @ 2002-10-20 20:10 UTC (permalink / raw)
  To: lartc

> :( Background explanation: The HTB on-line manual says
> simply: "Also you will have to use patched tc tool." To
> my newbie eye, this is vague and incomplete, hence my
> query.

-- SNIP --

> I have learned much in a very short time from reading
> the recent postings of Stef Coene and others on the
> LARTC. Thank you to you and everyone participating on
> the list.

J.B. - I 100% agree with you! :)

I would again like to point out to everyone what a fantastic resource this
is!!!

I know the work you do goes without thanks most of the time.

I have been trying to follow this forum every day for about the last 3
months.

I still don't know enough about the subject to be of much use to anyone
but I'm learning.

Never give up! :)

Cheers DiG





_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-20 20:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-20  2:16 [LARTC] Problems patching kernel 2.4.19-r9 jb
2002-10-20  8:20 ` Stef Coene
2002-10-20 14:25 ` jb
2002-10-20 14:59 ` Werner Almesberger
2002-10-20 20:10 ` Don Gould

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.