[dhcwg] Any documentation for handling /32 IPv4 assignments from DHCP?

Matthew Dempsky <matthew@dempsky.org> Thu, 05 December 2013 18:18 UTC

Return-Path: <matthew@dempsky.org>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9204F1AE0E1 for <dhcwg@ietfa.amsl.com>; Thu, 5 Dec 2013 10:18:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level:
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dNRMj0l4Xf9b for <dhcwg@ietfa.amsl.com>; Thu, 5 Dec 2013 10:18:22 -0800 (PST)
Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by ietfa.amsl.com (Postfix) with ESMTP id 9145E1AE06C for <dhcwg@ietf.org>; Thu, 5 Dec 2013 10:18:22 -0800 (PST)
Received: by mail-la0-f47.google.com with SMTP id ep20so10489527lab.34 for <dhcwg@ietf.org>; Thu, 05 Dec 2013 10:18:18 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Vtu+9SzrCZoR9ESXPwp5FHA7UjNWOvU6RHc/Wr/hqhw=; b=asbbfcDN4gRHUegwQgmnUUyrz7xRzKn+3pIH78QvBl063s2lzPVkZCud3zgrkWqDTJ cue6JsbMZXgnX2VE32SyhgA4GTMUakLwFb3lyDa/AdeoNSmtDzInZKLBATvbiBYyO/UR dtfaEDw7iVSKPBtWFYfkut/PGQgNZnHdFu9WipQ9n2lgqghqNrxF2lUskild7apMteAy 35Qg+zjEtTJG08/1xBGUo3tSPpN/gHlPN3Q8j27W/hJYqstPchkEa1/D3pv3KCk+zS7m 8ZNY3NZSnN9i3V4Nr6Fwgv/j7kBi9+AORkyJ92u173dFqoo3RpEmh5DyOJm6AW1/TmQJ o+ZQ==
X-Gm-Message-State: ALoCoQn6/vFPBIDGpejKkLvk80luy5+ggLgBMZpLZ3Vw7Ojq7tLmAWk9KRPWjVbQfLp8E7/y3G9/
MIME-Version: 1.0
X-Received: by 10.112.151.42 with SMTP id un10mr5249181lbb.7.1386267498455; Thu, 05 Dec 2013 10:18:18 -0800 (PST)
Received: by 10.152.22.132 with HTTP; Thu, 5 Dec 2013 10:18:18 -0800 (PST)
Date: Thu, 05 Dec 2013 10:18:18 -0800
Message-ID: <CANKkrzEew4WtYpa33GL3QB-8Wd8jGZTEv5djkOr9LbOMa7+icw@mail.gmail.com>
From: Matthew Dempsky <matthew@dempsky.org>
To: dhcwg@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"
Subject: [dhcwg] Any documentation for handling /32 IPv4 assignments from DHCP?
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Dec 2013 18:18:24 -0000

In dhcp-4.2.5-P1/client/scripts/linux, there's this code for adding
routes based on the Router (3) and Subnet Mask (1) options:

    for router in $new_routers; do
      if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then
        route add -host $router dev $interface
      fi
      route add default gw $router $metric_arg dev $interface
    done

Is this special case logic for subnet_mask==255.255.255.255 codified
anywhere?  I'm working on adding similar logic to OpenBSD's DHCP
client (so OpenBSD can connect to a network currently supported by ISC
DHCP on Linux), but I'm having trouble finding any authoritative
documentation explaining the correct behavior here.

In particular, ISC DHCP 4.2.5-P1 only adds the "dev" route for Router
(3), but I'm wondering if they should be added for Static Route (33)
and/or Classless Static Route Option (121) too?

Thanks