Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts(). This fixes

inconsistency when options are specified by both setsockopt() and ancillary
data types.

PR:		kern/158307
Approved by:	re (bz)
This commit is contained in:
Hiroki Sato 2011-09-20 00:29:17 +00:00
parent 0e6d7a0efa
commit 6090ab8bd6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225682

View File

@ -2367,6 +2367,8 @@ copypktopts(struct ip6_pktopts *dst, struct ip6_pktopts *src, int canwait)
dst->ip6po_hlim = src->ip6po_hlim;
dst->ip6po_tclass = src->ip6po_tclass;
dst->ip6po_flags = src->ip6po_flags;
dst->ip6po_minmtu = src->ip6po_minmtu;
dst->ip6po_prefer_tempaddr = src->ip6po_prefer_tempaddr;
if (src->ip6po_pktinfo) {
dst->ip6po_pktinfo = malloc(sizeof(*dst->ip6po_pktinfo),
M_IP6OPT, canwait);