ipt_dscp
Hi Rusty,
This is the testsuite related with the patchs I sent to you about the dscp implementation into nfsim.
Cheers :-)
- acidfu
# 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
things-to-test +0 -3
@@ -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 ---------------------