mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 15:43:02 +02:00
avahi: set proto random for ipv4 Link-Local address
Set the IP origin "random" for avahi IPv4LL addresses. The reason we use random and not link-layer for link-local IPv4 addresses is the fact that they are not based on link-layer info, such as IPv6 eui64 generated LL addresses. Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
committed by
Joachim Wiberg
parent
32511c2b2b
commit
f2267b98b9
@@ -42,7 +42,7 @@ if [ -x /bin/ip -o -x /sbin/ip ] ; then
|
||||
case "$1" in
|
||||
BIND)
|
||||
ip addr flush dev "$2" label "$2:avahi"
|
||||
ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2"
|
||||
ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" proto 6
|
||||
ip route add default dev "$2" metric "$METRIC" scope link ||:
|
||||
;;
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
4 static
|
||||
5 dhcp
|
||||
6 random
|
||||
|
||||
@@ -169,6 +169,7 @@ static const char *get_yang_origin(const char *protocol)
|
||||
{"kernel_ll", "link-layer"},
|
||||
{"static", "static"},
|
||||
{"dhcp", "dhcp"},
|
||||
{"random", "random"},
|
||||
};
|
||||
|
||||
for (i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
|
||||
|
||||
Reference in New Issue
Block a user