Hi,

This print format bug was found in ipsecctl when a SPI with a reserved value is entered with both in and out values.

# echo "esp tunnel from 1.2.3.4 to 4.3.2.1 spi 100:100" | ipsecctl -f -
stdin: 1: 4026941253462524004 within reserved spi range

# echo "esp tunnel from 1.2.3.4 to 4.3.2.1 spi 100" | ipsecctl -f -
stdin: 1: 100 within reserved spi range

Patch below.

Regards
Erik Lax

Index: sbin/ipsecctl/parse.y
===================================================================
RCS file: /cvs/src/sbin/ipsecctl/parse.y,v
retrieving revision 1.151
diff -r1.151 parse.y
1431c1431
<               yyerror("%lld not a valid spi", ulval);
---
>               yyerror("%lu not a valid spi", ulval);
1435c1435
<               yyerror("%lld within reserved spi range", ulval);
---
>               yyerror("%lu within reserved spi range", ulval);

Reply via email to