From 0252734eada6395e581f986d64a30d0328ea2f0e Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 06 2021 06:16:34 +0000 Subject: Apply patch 0005-xfrm-spi-is-big-endian.patch patch_name: 0005-xfrm-spi-is-big-endian.patch present_in_specfile: true location_in_specfile: 5 --- diff --git a/src/xfrm.c b/src/xfrm.c index 4dd53c3..336e8c9 100644 --- a/src/xfrm.c +++ b/src/xfrm.c @@ -39,7 +39,7 @@ const struct xfrm_template xfrm_templates[] = { [NFT_XFRM_KEY_DADDR_IP6] = XFRM_TEMPLATE_BE("daddr", &ip6addr_type, 16 * BITS_PER_BYTE), [NFT_XFRM_KEY_SADDR_IP6] = XFRM_TEMPLATE_BE("saddr", &ip6addr_type, 16 * BITS_PER_BYTE), [NFT_XFRM_KEY_REQID] = XFRM_TEMPLATE_HE("reqid", &integer_type, 4 * BITS_PER_BYTE), - [NFT_XFRM_KEY_SPI] = XFRM_TEMPLATE_HE("spi", &integer_type, 4 * BITS_PER_BYTE), + [NFT_XFRM_KEY_SPI] = XFRM_TEMPLATE_BE("spi", &integer_type, 4 * BITS_PER_BYTE), }; static void xfrm_expr_print(const struct expr *expr, struct output_ctx *octx) diff --git a/tests/py/inet/ipsec.t.payload b/tests/py/inet/ipsec.t.payload index 6049c66..c46a226 100644 --- a/tests/py/inet/ipsec.t.payload +++ b/tests/py/inet/ipsec.t.payload @@ -16,7 +16,6 @@ ip ipsec-ip4 ipsec-input # ipsec out spi 1-561 inet ipsec-inet ipsec-post [ xfrm load out 0 spi => reg 1 ] - [ byteorder reg 1 = hton(reg 1, 4, 4) ] [ cmp gte reg 1 0x01000000 ] [ cmp lte reg 1 0x31020000 ]