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

This commit is contained in:
Navdeep Parhar 2017-05-10 00:14:55 +00:00
parent c889d48074
commit ce9ac139d4

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 */