All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Bouliane <nib@cookinglinux.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: netfilter-devel <netfilter-devel@lists.netfilter.org>,
	Samuel Jean <sjean@cookinglinux.org>
Subject: [testesuite] ipt_dscp
Date: Wed, 22 Dec 2004 02:14:46 -0500	[thread overview]
Message-ID: <41C91EE6.4040005@cookinglinux.org> (raw)

[-- 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
 ---------------------

                 reply	other threads:[~2004-12-22  7:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41C91EE6.4040005@cookinglinux.org \
    --to=nib@cookinglinux.org \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=rusty@rustcorp.com.au \
    --cc=sjean@cookinglinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.