Set TTL to 255 for outgoing IPv4 unicast packets
authorRafał Miłecki <rafal@milecki.pl>
Mon, 13 Feb 2017 23:14:45 +0000 (00:14 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 14 Feb 2017 22:13:10 +0000 (23:13 +0100)
commita957c3e347e4f628c77b61a9dc6e49cb81a0efec
treeb984631dd9edf450fa290f730dbc12f189f702e3
parent70c66fbbcde868d2fe6034b5f706f1524e4f3d44
Set TTL to 255 for outgoing IPv4 unicast packets

1) We SHOULD do this according to the RFC 6762 (Section 11, "Source
   Address Check").
2) We already do it for IPv6 unicast and both multicast interfaces
3) When receiving IPv4 packet we ignore it if TTL doesn't equal 255

In other words this is a requirement for working unicast communication
between 2 umdns instances (which doesn't seem to work yet though).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
interface.c