Ticket #1540: 0001-Use-link-local-IPv4-connectivity.patch

File 0001-Use-link-local-IPv4-connectivity.patch, 1.7 KB (added by dsd, 13 years ago)

patch

  • extensions/deviceicon/network.py

    From 44fd355eb815dd6d5ea860eb35712dd4fc59750b Mon Sep 17 00:00:00 2001
    From: Daniel Drake <dsd@laptop.org>
    Date: Fri, 6 Nov 2009 14:41:30 +0000
    Subject: [PATCH] Use link-local IPv4 connectivity
    
    In 'shared' mode, each user runs their own DHCP server and does not
    attempt to communicate with anyone else.
    Change to link-local mode to use avahi-autoipd for IP management.
    ---
     extensions/deviceicon/network.py |    2 +-
     src/jarabe/desktop/meshbox.py    |    2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py
    index 0803936..dd1a70c 100644
    a b class WirelessDeviceView(ToolButton): 
    424424            settings.wireless.band = 'bg'
    425425            settings.wireless.mode = 'adhoc'
    426426            settings.ip4_config = IP4Config()
    427             settings.ip4_config.method = 'shared'
     427            settings.ip4_config.method = 'link-local'
    428428
    429429            connection = network.add_connection(connection_name, settings)
    430430
  • src/jarabe/desktop/meshbox.py

    diff --git a/src/jarabe/desktop/meshbox.py b/src/jarabe/desktop/meshbox.py
    index 2ba23d5..f8c446d 100644
    a b class AccessPointView(CanvasPulsingIcon): 
    373373                settings.wireless.mode = 'adhoc'
    374374                settings.wireless.band = 'bg'
    375375                settings.ip4_config = IP4Config()
    376                 settings.ip4_config.method = 'shared'
     376                settings.ip4_config.method = 'link-local'
    377377
    378378            wireless_security = self._get_security()
    379379            settings.wireless_security = wireless_security