examples/ipsec-secgw: convert IV to big endian
authorAviad Yehezkel <aviadye@mellanox.com>
Tue, 24 Oct 2017 12:49:00 +0000 (15:49 +0300)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:11:01 +0000 (18:11 +0200)
commit2a41fb7c65259e36a8fb1c60eb2c5fc73ade9575
tree30ef1f0570467822e06c39e1dc848a9ec1898aba
parent4040126053d8dd79dbd63b721fa6b73bd3863e0e
examples/ipsec-secgw: convert IV to big endian

According to rfc4106 the IV should be unique and can be implemented
as counter.
The changed was created because putting an analyzer on wire and
comparing packets generated by this application and Linux kernel.
Linux kernel sets IV as BE, so it is worth to do the same for
future debug / comparison.

Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
examples/ipsec-secgw/esp.c