HomeFreeBSD

Update ifr_name before invoking IPSECSREQID ioctl, this fixes the case,

Description

Update ifr_name before invoking IPSECSREQID ioctl, this fixes the case,
when ifconfig ipsec create reqid N command invoked without interface
unit number. The "name" global variable is updated after interface
cloning in the ifclonecreate() and contains actual interface name.

Reported by: lev
Approved by: re (kib)
MFC after: 1 week

Details

Provenance
aeAuthored on
Parents
rS338889: MFC r338801:
Branches
Unknown
Tags
Unknown