Patch from Lars Kellogg-Stedman:
authorEric Andersen <andersen@codepoet.org>
Thu, 3 Jul 2003 10:20:29 +0000 (10:20 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 3 Jul 2003 10:20:29 +0000 (10:20 -0000)
commit8a93179c142a730adff294fbc68112e54de9e6d9
tree37d6a7b90ae4a57eb7e5327827065b990ac7e15f
parentbccb31533efd4707e6f78e0474c28123c12edaf3
Patch from Lars Kellogg-Stedman:

    Erik, et al.

    The attached patch makes the following changes to networking/ifupdown.c:

    (1) It swaps all calls to 'ip link set' and 'ip addr set'.  This solves
    two problems:

      (a) Calling 'ip link set <dev> up' before assigning an address
      generates an error message, and

      (b) Under User Mode Linux, running in with ethernet interfaces
      in daemon mode, the MAC address for an interface is selected
      based on the IP address assigned to that interface.  If the
      interface is brought up before being assigned an IP address,
      it gets a null MAC.

    (2) It further cleans up run_mapping().

    This patch is against ifupdown.c revision 1.25.

    -- Lars
networking/ifupdown.c