From nobody Fri Nov 13 11:42:41 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jQwNf1BC4z70QmT for ; Fri, 13 Nov 2026 11:42:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jQwNf0DjGz4Pq7 for ; Fri, 13 Nov 2026 11:42:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794570162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IiAGkcHAETt30DDPOknO4AhFxfaPMotEzN9FzwarvQ8=; b=BAuWdgr+uCw8MgVPunwgBYGJrsoAmZMguJv5kUIp3u67R9GTfYTUbXG9XfwzLHMuoWVPCr DX/tdn/uLToYMZe1dadtOituyxIz0OE3WVpt3cMTwM+u9EimKy7JXjX3L3OMrjykw8zLw1 RU6zUArt/pt30jZGHTPnjqoNnMeHV9I9eSgf+PEIhOVIL5JkNLbe3I/P8xAZA2a7UwkPeL 2cNSGqQDisH2D5ktmeDJqO6rVEQfWtJekL9lB/Mkcw/CIPBAg69Iw/bZEqnX3wu4JmYvlG ED+nR6KVlgfgqK5s541Lq8HJHa3n+bsjAlRprjwWSbxg7Pd9k9uNoMdxTjhIBA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794570162; b=TCIynZGUD5frff4Cinub9KgIS5OS9L850oOZA4JhGkhzvTtGOZJLUHg4JeWe07RQN3DGp/ pqU2amWCjgVhdXv6XKfuspFl0p8zDTmwBkwCkQ0YOBUjP8fQ338/FyrEOccWu5YlznByjv dxrhUjj7qkuel89ltsklhXiFYxcN8N5/d8omWNKA5hp5Y2Fesgh0hNDHPOMuXEJUp2V8QO dB0DXeCmzd515y7y66DvCTjjXiL3u08MdMRpIv34fyAhvXbkiV8OIJ9JF6kurkXD9E9RMM 5ovdx00Td3OGO2B/bdaS8dpqwp1s0kp3hgJflPfJn4smEU4wVcqBEGLCJlO+bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794570162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IiAGkcHAETt30DDPOknO4AhFxfaPMotEzN9FzwarvQ8=; b=fmtbKYwKaEQlcJw4R39K2YrWe8/Le2AjbLl3yKTFU1b7SjCBRTt+dMsNUpW1MlLHn2CeJh KwAzSEFokJQlmFa+rPudEJ6BSH+6vOmysmJrYkA2EMgkOn/ze+5cPp0yUdiFDS19w6FsHm EFbdRsnzowl+84o2Zk+ao08BGHdABI+iDCVwOMMHMRYHli9rFwfLYUb2s4Y1kw/GfSQVOH YRg2LWrOZ49hkPTL7uE89Sckpn8jG6aO5OmikUopJuYVKMeEXPBiYXhMAPZXRtrQJDzCWd jZqFLd6PgEgRleq+bWN7mlALQToQwE3hRXm3gl7LYgc8+FWWAkuEyzQmPJ04GQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQwNd6yLyzYwC for ; Fri, 13 Nov 2026 11:42:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 135c1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 11:42:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Kevin Day From: Pouria Mousavizadeh Tehrani Subject: git: 7ba9c38b703d - main - if_geneve: Do not byte-swap the option length List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ba9c38b703d7acdc472939d54703b9bc38fb6f3 Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 11:42:41 +0000 Message-Id: <6af6f7b1.135c1.894e534@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=7ba9c38b703d7acdc472939d54703b9bc38fb6f3 commit 7ba9c38b703d7acdc472939d54703b9bc38fb6f3 Author: Kevin Day AuthorDate: 2026-11-13 11:26:54 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-11-13 11:41:53 +0000 if_geneve: Do not byte-swap the option length geneve_optlen is a 6-bit bitfield within a single byte, so it has no byte order. Applying ntohs() to it on little-endian machines turned an option length of 1 into 256, causing every received packet carrying options to dropped. PR: 300453 Reviewed by: pouria Fixes: e44d2e941e8e ("if_geneve: Add Support for Geneve (RFC8926)") --- sys/net/if_geneve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_geneve.c b/sys/net/if_geneve.c index e68bdfb76e4b..c7571984c4cf 100644 --- a/sys/net/if_geneve.c +++ b/sys/net/if_geneve.c @@ -3013,7 +3013,7 @@ geneve_udp_input(struct mbuf *m, int offset, struct inpcb *inpcb, * The length of the option fields, expressed in 4-byte multiples, not * including the 8-byte fixed tunnel header. */ - optlen = ntohs(gnvh->geneve_optlen) * 4; + optlen = gnvh->geneve_optlen * 4; error = geneve_next_option(gnvso, gnvh, &m); if (error != 0) return (false);