diff options
author | Justin Pettit <jpettit@nicira.com> | 2011-02-02 11:33:20 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-02-02 11:50:17 -0800 |
commit | 6767a2cce9a6412b3a41a927c4d56b9f0e1ec36f (patch) | |
tree | d517a57ed0a12e15afd43a09b6af0f393b5caf6d /tests/flowgen.pl | |
parent | ff55ea1f29360533699edb77747a919505282057 (diff) |
lib: Replace IP_TYPE_ references with IPPROTO_.
A few common IP protocol types were defined in "lib/packets.h". However,
we already assume the existence of <netinet/in.h> which contains a more
exhaustive list and should be available on POSIX systems.
Diffstat (limited to 'tests/flowgen.pl')
-rwxr-xr-x | tests/flowgen.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/flowgen.pl b/tests/flowgen.pl index a14faa70..4e2e5ad7 100755 --- a/tests/flowgen.pl +++ b/tests/flowgen.pl @@ -84,15 +84,15 @@ sub output { $flow{NW_PROTO} = 42; } elsif ($attrs{TP_PROTO} eq 'TCP' || $attrs{TP_PROTO} eq 'TCP+options') { - $flow{NW_PROTO} = 6; # IP_TYPE_TCP + $flow{NW_PROTO} = 6; # IPPROTO_TCP $flow{TP_SRC} = 6667; $flow{TP_DST} = 9998; } elsif ($attrs{TP_PROTO} eq 'UDP') { - $flow{NW_PROTO} = 17; # IP_TYPE_UDP + $flow{NW_PROTO} = 17; # IPPROTO_UDP $flow{TP_SRC} = 1112; $flow{TP_DST} = 2223; } elsif ($attrs{TP_PROTO} eq 'ICMP') { - $flow{NW_PROTO} = 1; # IP_TYPE_ICMP + $flow{NW_PROTO} = 1; # IPPROTO_ICMP $flow{TP_SRC} = 8; # echo request $flow{TP_DST} = 0; # code } else { |