tc: u32: Fix icmp_code off.
Subsystems (2)
PATCH 1/1 tc: u32: Fix icmp_code off.
The off of icmp_code is not 20 but 21. Also offmask should be 0 unless nexthdr+ is specified.
Signed-off-by Hiroaki SHIMODA <[email protected]>
--- tc/f_u32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tc/f_u32.c +1 -1
@@ -531,7 +531,7 @@ static int parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) res =parse_u8 (&argc, &argv, sel,20 ,0 ); }else if (strcmp (*argv,"icmp_code" ) ==0 ) {NEXT_ARG (); - res =parse_u8 (&argc, &argv, sel,20 ,1 ); + res =parse_u8 (&argc, &argv, sel,21 ,0 ); }else return -1 ;
Signature · 1 line
1.7.8.6
Quoted 4 lines · On Tue, 10 Jul 2012 18:53:18 +0900 Hiroaki SHIMODA <[email protected]>…
The off of
icmp_codeis not 20 but 21. Also offmask should be 0 unless nexthdr+ is specified.Signed-off-by Hiroaki SHIMODA <[email protected]>
Both patches applied