From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202502 header.b=Pt4hyljH; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id DDF7A5A0275 for ; Wed, 19 Feb 2025 04:14:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1739934871; bh=Fh/4y/bONnc0AWI8l21okAHYswhgtKqSnzTmiURFUDQ=; h=From:To:Cc:Subject:Date:From; b=Pt4hyljH0kMh3BUasQG4D47300w/tBtdr+7hZUCC0H6AQcy0TpMqI+okJfskQXM8W DGzfU1bjoaYFlGTAaXNLfoMFQtNBjs0Wq2kQC+qD/BgZto0xgnAqwj5/bggTjqcUdr akPyTiXwG38i7roilcOl0iE84BNH7rih7B2xRzQ+14rfY+6VJYocajQsyTRpzoffmd vvVijTeZlMK39u7V1zO0PuEPkOIYIhPBN2J86cWfzb3sji9N0+bii7UEBqI6TkGEQp 9yIZBof7Y8gAHUICEiPB/6V91TZ5IGEYm+i7n8tVAZCHdB8UL8p4wZ9a1Nk6SJruot fmF+bTVGA3Etg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4YyM1z220Nz4wyl; Wed, 19 Feb 2025 14:14:31 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/3] Improve validation of --mtu option Date: Wed, 19 Feb 2025 14:14:26 +1100 Message-ID: <20250219031429.3708026-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.48.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GGK2NHDC6UHBWQIMQFUEJP2DCPPFH2ID X-Message-ID-Hash: GGK2NHDC6UHBWQIMQFUEJP2DCPPFH2ID X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Here are some of the more straightforward parts of my patches making various MTU related fixes. These ones improve how we validate the --mtu option. David Gibson (3): conf: More thorough error checking when parsing --mtu option conf: Use 0 instead of -1 as "unassigned" mtu value conf: Be more precise about minimum MTUs conf.c | 40 ++++++++++++++++++++++++++-------------- dhcp.c | 2 +- ip.h | 7 +++++++ ndp.c | 2 +- passt.h | 3 ++- pasta.c | 2 +- tcp.c | 2 +- util.h | 3 --- 8 files changed, 39 insertions(+), 22 deletions(-) -- 2.48.1