Re: git: network - Remove crit_exit/crit_enter wrappers in pf.c

看板DFBSD_commit作者時間15年前 (2010/09/18 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
:While looking at this change, I found an odd piece of code in pf_route6() :at line 5384; there's no prior call to crit_exit() in this function. :Is this OK? : : /* Cheat. XXX why only in the v6 case??? */ : if (r->rt == PF_FASTROUTE) { : m0->m_pkthdr.pf.flags |= PF_TAG_GENERATED; : ip6_output(m0, NULL, NULL, 0, NULL, NULL, NULL); : crit_enter(); : return; : } No, that looks totaly broken. I'll remove the bogus enter. Nice catch. -Matt Matthew Dillon <dillon@backplane.com>
文章代碼(AID): #1Cb0zIfm (DFBSD_commit)
文章代碼(AID): #1Cb0zIfm (DFBSD_commit)