From owner-freebsd-net@freebsd.org Wed Feb 28 19:07:45 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2003F3DC9D for ; Wed, 28 Feb 2018 19:07:44 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C6EB884F8 for ; Wed, 28 Feb 2018 19:07:44 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-qk0-x230.google.com with SMTP id g2so4371334qkd.12 for ; Wed, 28 Feb 2018 11:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=mjwdg4hBcgu0mTvpKnNrrnoIagI+oZd1xR83iQx+mes=; b=ONK51hf4Sx5imjKOQWUdvJLfRBc7q7dp25PoJqmG8eMW9Ex4Tkjr5Pd/+AjPIKqoyU NdFh1IQaMd5Jd2wkncfHb8XoIwmOWyA3UU0N/eCBep3yNsyDy0qVVQD+EHPXKQuv9RcG TGrVXfevbMxE6SUKseoayYkAGoOJQkfIm8uxzsJoNjrIM7UeLYAuBgEcEQ+xgIFCJkP9 lIFUTTQRJEFSn2hjWfnMug58/W1jB6zKbcgxv9WGDZzkkzICkudSO+xRuPscstmY2nbF 4vqXmyqV9fqf3x4jv2dy6uQpslK74AhLIP6+GYeKoEQyxjK+Yqz8LFMt0rT9Sm3l3Dbs a9jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mjwdg4hBcgu0mTvpKnNrrnoIagI+oZd1xR83iQx+mes=; b=pNs5qNtMrDA66kHcEPaH000TN+XfRNfQCzX2zDEAQOPsZyrSnio7P2B0l6RRn+D5e0 l+4n6ranTbpLZ/6dnHKlwj8OBi3tw+KXpVZb6yOZKKu+nNvguqb13Dg+Lz3+M4NOBiDf MUZJGkpyG6FayZWhStrdmQnC362JSTlo3EquwgXZc/psiKnnfcmFurF7iZHo8DIQlK3v d91weYKJvsyPy/mxEkdmbFnxmS93fiz8xQBmSs9vzcoWbbRoL69r9TUXkDOoVYUG1Ser xOyUGsEwSuXp8bQEknmQqAUS7AHi0Va0bhL5SZ7d44BKM6mVU8CjLn8QEcBl80xwOVSq QyOA== X-Gm-Message-State: APf1xPAWxyKBCnXMc1JOyfyyfwDedusUgW79sM7HSQBRNR0WvLiRN0cG 3TQAy0fCvmdbiI1AhydsYCJSlDwmRU1aw6G3Y1VVCg== X-Google-Smtp-Source: AG47ELsONjn6rCuP/5jgOnL2USGDHcxKRCN7sCgrk7GQ+7YcN290OxETne5SS+Zaecu0UunTmatsCI980H7HCwch4HA= X-Received: by 10.233.214.1 with SMTP id r1mr20140072qkk.121.1519844863808; Wed, 28 Feb 2018 11:07:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.52.4 with HTTP; Wed, 28 Feb 2018 11:07:43 -0800 (PST) From: Ryan Stone Date: Wed, 28 Feb 2018 14:07:43 -0500 Message-ID: Subject: [PATCH] Fix for IPv4 subnet route migration To: freebsd-net Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 19:07:45 -0000 Currently, the FreeBSD stack gets itself into a bizarre state if you try to change the source IP for a subnet route (yes, this implies using two IPs on the same subnet on a system. Yes, I'm aware this is a Bad Idea(TM). Unfortunately I have a customer that insists on this configuration) You can see the review description for all of the gory details. IPv6 is not affected by the issue so I only had to fix IPv4. The review is here: https://reviews.freebsd.org/D14547 If anybody is interested in reviewing this fix, please subscribe yourself to the review. Thanks! Ryan