Skip to contentSkip to conversation

tcng 9b tests error

LARTC [email protected] 1 participant 1 message Nov 5, 2002

lore
Share & tools
lore
#0 lore raw

I was trying out tcng and got the following error. Any suggestions?

Additive headers at external interface (C): FAILED
Standard error:
| input in flex scanner failed

File:      tests/additive
Command:   LD_LIBRARY_PATH=.   tcsim -v -Xc,-tif:c
tests/lib/additive.tcsim |   sed '/.* c .*returns /{s///;s/ (.*//;p;};d'
Input:     _in.15864
Output:    _out.15864
Reference: _ref.15864
scripts/runtests.sh: line 549: 15888 Broken pipe             cat
scripts/run-all-tests: line 14: 17625 Broken pipe             cat $n
make: *** [tests] Error 1

I also get an error with the following simple example:

[bauer@26-2-122 tcng]$ tcsim -ddd example.tcsim
0.000000: adding timer 360000.000000 (0x805f7f2)
--- TCC input ----------

# 1 "example.tc"
dev eth0 {
egress {
drop if tcp_sport != 80;
}
}

----------
--- TCC output ----------

# ================ Device eth0
# ================

tc qdisc add dev eth0 handle 1:0 root dsmark indices 1 default_index 0 tc filter add dev eth0 parent 1:0 protocol all prio 1 handle 1:0:0 u32 divisor 1
tc filter add dev eth0 parent 1:0 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 1:0:0
tc filter add dev eth0 parent 1:0 protocol all prio 1 handle 1:0:1 u32 ht 1:0:0 match u16 0x50 0xffff at 0 classid 1:0
tc filter add dev eth0 parent 1:0 protocol all prio 1 u32 match u8 0x6 0xff at 9 classid 1:0 police index 1 rate 1bps burst 1 action drop/drop tc filter add dev eth0 parent 1:0 protocol all prio 1 u32 match u32 0 0 at 0 classid 1:0
----------

| dsmark_init(sch 0x80b8c80,[qdisc 0x80b8cdc],opt 0x80b8c68)
| dsmark_init: qdisc 0x80b8cdc
| dsmark_get(sch 0x80b8c80,[qdisc 0x80b8cdc],classid 10000)
| dsmark_get(sch 0x80b8c80,[qdisc 0x80b8cdc],classid 10000)
| dsmark_get(sch 0x80b8c80,[qdisc 0x80b8cdc],classid 10000)

0.000000 E : 0x80c0bc0 40 : eth0: 45000028 00000000 40060000 0a000001 0a000002 00500000 00000000 00000000 50000000 00000000 0.000000 D : 0x80c0bc0 40 : eth0: 45000028 00000000 40060000 0a000001 0a000002 00500000 00000000 00000000 50000000 00000000 0.000000: adding timer 0.000320 (0x805405a)
0.000000 E : 0x80c0ef8 40 : eth0: 45000028 00000000 40060000 0a000001 0a000002 00160000 00000000 00000000 50000000 00000000 0.000000 * : 0x80c0ef8 40 : eth0: enqueue returns POLICED (3) input in flex scanner failed
[bauer@26-2-122 tcng]$

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