Add IP_MINTTL socket option - used to set the minimum acceptable TTL a
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 4 Apr 2007 06:13:26 +0000 (06:13 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 4 Apr 2007 06:13:26 +0000 (06:13 +0000)
commit959263625c0076d21cef2380a3a9e17443e7764d
treed697239b7422ac91251bb9214a81459381b41ca5
parentc204614815d6c20f4dd0aae7053caf9dfcea4c05
Add IP_MINTTL socket option - used to set the minimum acceptable TTL a
packet must have when received on a socket.  All packets with a lower TTL
are silently dropped.  Works on already connected/connecting and listening
sockets for RAW/UDP/TCP.

Add IP_RECVTTL socket option support - When set, userland receives the
incoming packet's TTL as ancillary data with recvmsg(2) call.

Allows the implementation of security mechanisms described in RFC3682 (GTSM).

Obtained-from: FreeBSD.
Submitted-by: Hasso Tepper <hasso@estpak.ee>
share/man/man4/ip.4
sys/netinet/in.h
sys/netinet/in_pcb.h
sys/netinet/ip_input.c
sys/netinet/ip_output.c
sys/netinet/raw_ip.c
sys/netinet/tcp_input.c
sys/netinet/udp_usrreq.c