On Mon, Jun 27, 2016 at 01:08:20PM +0200, Jeremie Courreges-Anglas wrote:
>
> The comment is not accurate anymore. Since a few months the hop limit
> that can be specified via RA is ignored. There are two ways to fix the
> comment: amend it or delete it. Here, I think that the function is
> trivial enough that a comment isn't needed.
>
> ok/nay?
OK bluhm@
>
> Index: in6_src.c
> ===================================================================
> RCS file: /cvs/src/sys/netinet6/in6_src.c,v
> retrieving revision 1.72
> diff -u -p -p -u -r1.72 in6_src.c
> --- in6_src.c 5 Dec 2015 13:21:00 -0000 1.72
> +++ in6_src.c 27 Jun 2016 11:05:17 -0000
> @@ -380,13 +380,6 @@ in6_selectif(struct sockaddr_in6 *dstsoc
> return (0);
> }
>
> -/*
> - * Default hop limit selection. The precedence is as follows:
> - * 1. Hoplimit value specified via ioctl.
> - * 2. (If the outgoing interface is detected) the current
> - * hop limit of the interface specified by router advertisement.
> - * 3. The system default hoplimit.
> -*/
> int
> in6_selecthlim(struct inpcb *in6p)
> {
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE