~lynxman/ubuntu/oneiric/openvswitch/fixinitupstream

« back to all changes in this revision

Viewing changes to tests/flowgen.pl

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-08-04 17:03:23 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110804170323-aqoummibeco7pq2c
Tags: 1.2.0-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/rules, debian/contro, debian/dkms.conf.in,
    debian/openvswitch-datapath.dkms.(postinst, prerm):
    Add dkms support by providindg openvswitch-datapath-dkms

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
output(DL_HEADER => '802.2');
34
34
 
35
 
for my $dl_header qw(802.2+SNAP Ethernet) {
 
35
for my $dl_header (qw(802.2+SNAP Ethernet)) {
36
36
    my %a = (DL_HEADER => $dl_header);
37
 
    for my $dl_vlan qw(none zero nonzero) {
 
37
    for my $dl_vlan (qw(none zero nonzero)) {
38
38
        my %b = (%a, DL_VLAN => $dl_vlan);
39
39
 
40
40
        # Non-IP case.
41
41
        output(%b, DL_TYPE => 'non-ip');
42
42
 
43
 
        for my $ip_options qw(no yes) {
 
43
        for my $ip_options (qw(no yes)) {
44
44
            my %c = (%b, DL_TYPE => 'ip', IP_OPTIONS => $ip_options);
45
 
            for my $ip_fragment qw(no first middle last) {
 
45
            for my $ip_fragment (qw(no first middle last)) {
46
46
                my %d = (%c, IP_FRAGMENT => $ip_fragment);
47
 
                for my $tp_proto qw(TCP TCP+options UDP ICMP other) {
 
47
                for my $tp_proto (qw(TCP TCP+options UDP ICMP other)) {
48
48
                    output(%d, TP_PROTO => $tp_proto);
49
49
                }
50
50
            }