Hello list,
I have checked the implementation again and it seems ‘ipv4_has_link_scope()’ is not implemented:
ipv6.h (everything works fine):
65 #define ipa_has_link_scope(x) ipv6_has_link_scope(&(x))
90 static inline int ipv6_has_link_scope(ip_addr *a)
91 {
92 return ((a->addr[0] & 0xffc00000) == 0xfe800000);
93 }
ipv4.h (returns 0 in any case)
59 #define ipa_has_link_scope(x) ipv4_has_link_scope(_I(x))
77 static inline int ipv4_has_link_scope(u32 a UNUSED)
78 {
79 return 0;
80 }
However, does it make sense to do this check in the first place?
Thanks,
Amadeus