diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-09-03 16:14:27 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-09-03 16:14:27 +0000 |
commit | b6472516dc7738d9f11854313c763cebf2747986 (patch) | |
tree | 40b721b6a2af88a20e6200f337d558b3b7fd43f8 /avahi-autoipd/avahi-autoipd.action | |
parent | e18bf1fbd6d05fccf0699616dd58de9a61ed4cea (diff) |
configure broadcast address explicitly
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1316 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-autoipd/avahi-autoipd.action')
-rwxr-xr-x | avahi-autoipd/avahi-autoipd.action | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/avahi-autoipd/avahi-autoipd.action b/avahi-autoipd/avahi-autoipd.action index 45ce1b5..5efc255 100755 --- a/avahi-autoipd/avahi-autoipd.action +++ b/avahi-autoipd/avahi-autoipd.action @@ -36,11 +36,11 @@ if [ -x /bin/ip -o -x /sbin/ip ] ; then case "$1" in BIND) - ip addr add "$3"/16 label "$2:avahi" scope link dev "$2" + ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" ;; CONFLICT|UNBIND|STOP) - ip addr del "$3"/16 label "$2:avahi" scope link dev "$2" + ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" ;; *) @@ -55,7 +55,7 @@ elif [ -x /bin/ifconfig -o -x /sbin/ifconfig ] ; then case "$1" in BIND) - ifconfig "$2" inet "$3" netmask 255.255.0.0 + ifconfig "$2" inet "$3" netmask 255.255.0.0 broadcast 169.254.255.255 ;; CONFLICT|UNBIND|STOP) |