** Description changed:

- From avahi ticket: http://avahi.org/ticket/265
+ From avahi ticket (http://avahi.org/ticket/265) :
  
  In the case where you have a system connected to a hub which returns
  packets to the sender, autoipd always lists every IP address as taken,
  even when it isn't. The attached patch fixes this problem by ignoring
  conflicts when the packet is generated by the local address. I cannot
  think of any downsides to this approach.
+ 
+ IMPACT:
+ The impact will we that if we try to use avahi-autoipd with a hub, or in 
virtual environments, such as qemu/kvm using multicast networking, we won't be 
able to assign an IP address with avahi-autoipd, since it will think the 
address is already taken.
+ 
+ TEST CASE:
+ To reproduce this, we are going to use a virtual machine with KVM, having two 
interfaces in the VM. eth0 will handle Internet connectivity and eth1 will be 
used for avahi-autoipd tests.
+ 
+ 1. Create disk for VM: 
+     - qemu-img create ubuntu.img 2G
+ 
+ 2. Create the VM and install Ubuntu:
+     - kvm -name ubuntu1 -hda ubuntu.img -m 256 -net 
nic,vlan=0,macaddr=52:54:00:12:34:22,model=virtio -net user,vlan=0 -net 
nic,vlan=1,macaddr=52:54:00:12:34:33,model=virtio -net 
socket,vlan=1,mcast=230.0.0.1:1234 -cdrom /path/to/jaunty-server-amd64.iso 
-boot d
+ 
+ 3. Run the VM:
+     - kvm -name ubuntu1 -hda ubuntu.img -m 256 -net 
nic,vlan=0,macaddr=52:54:00:12:34:22,model=virtio -net user,vlan=0 -net 
nic,vlan=1,macaddr=52:54:00:12:34:33,model=virtio -net 
socket,vlan=1,mcast=230.0.0.1:1234
+ 
+ 4.  Install avahi-autoipd and try it:
+     - sudo apt-get install avahi-autoipd
+     - sudo -i # to have a root console.
+     - avahi-autoipd eth1 # to assign an IP address to eth1 using 
avahi-autoipd.
+ 
+ avahi-autoipd will try to assign an address but it will conflict and
+ i'll never assign the address since it will think that someone else
+ already has it.
+ 
+ 5. Install avahi-autoipd from my PPA 
(https://launchpad.net/~andreserl/+archive/ppa):
+    -  Once you update avahi from my PPA, you'll see that this issue has been 
fixed.
+ 
+ I have attached a debdiff containing the patch.

-- 
avahi-autoipd breakage on hubs which return packets
https://bugs.launchpad.net/bugs/368173
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to