Re: Fix iked's auto-srcid based on the local hostname

2012-10-09 Thread Mike Belopuhov
On Tue, Oct 9, 2012 at 1:23 PM, Reyk Floeter wrote: > Hi, > > the iked.conf(5) manpage says: "If srcid is omitted, the default is to > use the hostname of the local machine, see hostname(1) to set or print > the hostname." This was true but I broke it with a commit about two > years ago :( > > The

Fix iked's auto-srcid based on the local hostname

2012-10-09 Thread Reyk Floeter
Hi, the iked.conf(5) manpage says: "If srcid is omitted, the default is to use the hostname of the local machine, see hostname(1) to set or print the hostname." This was true but I broke it with a commit about two years ago :( The following diff tells ikev2_policy2id() in ca_setreq() that it's de