All of lore.kernel.org
 help / color / mirror / Atom feed
* [testesuite] ipt_dscp
@ 2004-12-22  7:14 Nicolas Bouliane
  0 siblings, 0 replies; only message in thread
From: Nicolas Bouliane @ 2004-12-22  7:14 UTC (permalink / raw)
  To: Rusty Russell; +Cc: netfilter-devel, Samuel Jean

[-- Attachment #1: Type: text/plain, Size: 137 bytes --]

Hi Rusty,

This is the testsuite related with the patchs I sent to you about the 
dscp implementation into nfsim.

Cheers :-)


- acidfu

[-- Attachment #2: 22ipt_dscp.sim --]
[-- Type: text/plain, Size: 1232 bytes --]

# Input outbound value to DSCP.
expect iptables iptables: command failed
iptables -A INPUT -m dscp --dscp 64

# Check if inputing the same option twice overwrite previous one.
expect iptables iptables: command failed
iptables -A INPUT -m dscp --dscp 1 --dscp 2

expect iptables iptables: command failed
iptables -A INPUT -m dscp --dscp-class BE --dscp-class EF

# Test for match function.
# --dscp
iptables -A INPUT -m dscp --dscp 0x01 -j DROP
expect gen_ip hook:NF_IP_LOCAL_IN iptable_filter NF_DROP {IPv4 DSCP=0x1 192.168.0.2 192.168.0.1 0 6 1 2 ACK}
gen_ip IF=eth0 DSCP=0x1 192.168.0.2 192.168.0.1 0 TCP 1 2 ACK

expect gen_ip send:LOCAL {IPv4 DSCP=0x2 192.168.0.2 192.168.0.1 0 6 1 2 ACK}
gen_ip IF=eth0 DSCP=0x2 192.168.0.2 192.168.0.1 0 TCP 1 2 ACK
iptables -D INPUT -m dscp --dscp 0x01 -j DROP

# --dscp-class
iptables -A INPUT -m dscp --dscp-class EF -j DROP
expect gen_ip hook:NF_IP_LOCAL_IN iptable_filter NF_DROP {IPv4 DSCP=0x2e 192.168.0.2 192.168.0.1 0 6 1 2 ACK}
gen_ip IF=eth0 DSCP=0x2e 192.168.0.2 192.168.0.1 0 TCP 1 2 ACK

expect gen_ip send:LOCAL {IPv4 DSCP=0x2f 192.168.0.2 192.168.0.1 0 6 1 2 ACK}
gen_ip IF=eth0 DSCP=0x2f 192.168.0.2 192.168.0.1 0 TCP 1 2 ACK
iptables -D INPUT -m dscp --dscp-class EF -j DROP

[-- Attachment #3: things-to-test.patch --]
[-- Type: text/x-patch, Size: 464 bytes --]

Index: things-to-test
===================================================================
--- things-to-test	(revision 3488)
+++ things-to-test	(working copy)
@@ -100,20 +100,17 @@
 ip_nat_tftp.c
 ip_nat_snmp_basic.c
 ipt_CLASSIFY.c
-ipt_DSCP.c
 ipt_ECN.c
 ipt_NETMAP.c
 ipt_REDIRECT.c
 ipt_SAME.c
 ipt_TCPMSS.c
-ipt_TOS.c
 ipt_ah.c
 ipt_conntrack.c
 ipt_dscp.c
 ipt_ecn.c
 ipt_esp.c
 ipt_helper.c
-ipt_length.c
 ipt_pkttype.c
 ipt_tcpmss.c
 ---------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-22  7:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-22  7:14 [testesuite] ipt_dscp Nicolas Bouliane

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.