Re: IPFW2 layer2 filtering broken - PATCH

看板DFBSD_bugs作者時間21年前 (2005/01/26 02:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/8 (看更多)
On Mon, Jan 24, 2005 at 09:50:05AM -0800, Matthew Dillon wrote: > From my read of the code, the 'eh = mtod(...)' is necessary, but > most of the time the returned 'm' will be the same as the passed 'm' > so I am not surprised that you did not see any difference. The eh = mtod() is necessary, because the ether header might not actually be part of the passed in header. Because ether_ifpw_chk changes that by prepending the header, it is necessary to update the pointer in the caller. Joerg
文章代碼(AID): #11zede00 (DFBSD_bugs)
討論串 (同標題文章)
文章代碼(AID): #11zede00 (DFBSD_bugs)