Skip to contentSkip to conversation

Tcng error

LARTC S Mohan 4 participants 4 messages Jul 16, 2002 – Nov 26, 2003

lore
Share & tools
lore

S Mohan

author
#0 lore raw

I downloaded tcng and tried to run ./configure. I got the following error.
---------screen output/ transcript----------- bash-2.05a# ./configure
building tcsim: yes
/usr/src/linux: no kernel directory
bash-2.05a#
---------end transcript----------------------

Does tcng require recompilation of kernel? I'm using RH7.3. Is there an rpm for RH? How do I get this going. All help welcome. TIA

Mohan

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 1 line · S Mohan

Does tcng require recompilation of kernel?

No, but it needs the kernel and iproute2 source if you want to build tcsim too. If you don't want tcsim, just run ./configure -n If you want tcsim, look at the README for instructions.

Quoted 1 line

I'm using RH7.3. Is there an rpm for RH?

I don't know of any, but it would be good if someone who regularly builds RPMs for a reasonably large set of distributions/releases could include tcng (and, of course, let people know). tcng already supports building RPMs: make rpm and make tcsim-rpms

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://icapeople.epfl.ch/almesber/_____________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to S Mohan

try installing the kernel-source and the kernel-headers packages ;)

Alf

----- Original Message -----
From: "S Mohan" <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 16, 2002 2:28 AM
Subject: [LARTC] Tcng error

Quoted 9 lines

I downloaded tcng and tried to run ./configure. I got the following error.
---------screen output/ transcript----------- bash-2.05a# ./configure
building tcsim: yes
/usr/src/linux: no kernel directory
bash-2.05a#
---------end transcript----------------------

Quoted 9 lines

Does tcng require recompilation of kernel? I'm using RH7.3. Is there an rpm for RH? How do I get this going. All help welcome. TIA

Mohan

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw

[LARTC] tcng error

In reply to S Mohan

hi all,

below is my tcng configuration (based on wondershaper) which yields an error that i do not understand ...

can't dump subexpression (if_u32.c, access expected) [==]--[&.IPv6 address]--[==]--[access]-- (none)

|     |                 |     +-- 9
|     |                 |     `-- 8
|     |                 `--[offset]--[access]-- (none)
|     |                       |         +-- 2
|     |                       |         `-- 16
|     |                       `--[<<]--[&]--[access]-- (none)
|     |                                 |     |    +-- 0
|     |                                 |     |    `-- 8
|     |                                 |     `-- 15
|     |                                 `-- 2
|     `-- FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF

`-- 80

can anyone comment on why this is happening?

additionally, any expressions getting active/passive ftp into $medium would be greatly appreciated -- i would imagine that i have to mark in netfilter??

thanks

charles

here comes the config ... :-)

#define DEVICE eth0
#define DOWNLINK 1024
#define UPLINK 512

#include "fields.tc"
#include "ports.tc"

dev DEVICE {
    egress {
        class (<$high>) if ip_proto == IPPROTO_ICMP ||
                                       tcp_ACK ||
                                       tcp_dport == 8080 ||
                                       tcp_dport == 18082 ||
                                       tcp_dport == 18083;
                                                                                                                             
        class (<$medium>) if ip_proto == tcp_dport == 80 ||
                                         tcp_dport == 25 ;
                                                                                                                             
        class (<$low>) if 1;
                                                                                                                             
        htb () {
            class (rate UPLINK kbps, burst 6kB) {
                $high = class (prio 1, rate UPLINK kbps)
                    { sfq (perturb 10 sec); };
                $medium = class (prio 2, rate (0.9*UPLINK) kbps)
                    { sfq (perturb 10 sec); };
                $low = class (prio 3, rate (0.8*UPLINK) kbps)
                    { sfq (perturb 10 sec); };
            }
        }
    }
}