ip6_output runs with the inp lock held, just like ip_output.

This commit is contained in:
np 2017-05-10 00:14:55 +00:00
parent 44a49b0c47
commit 29eaa62515

View File

@ -325,6 +325,7 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt,
uint32_t id;
if (inp != NULL) {
INP_LOCK_ASSERT(inp);
M_SETFIB(m, inp->inp_inc.inc_fibnum);
if ((flags & IP_NODEFAULTFLOWID) == 0) {
/* unconditionally set flowid */