In divert_packet():
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 20 Dec 2007 12:44:20 +0000 (12:44 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 20 Dec 2007 12:44:20 +0000 (12:44 +0000)
commit077c74e29e0c2e4bdff9b377b9867534e200f7ea
tree45b0061a33a71c131749da1962da96b5236e88b2
parentf2c2ec09fc0f40512126d0671afd3b7fc129ef13
In divert_packet():
- Since rcvif is checked on the main code path, we need to make sure that
  the mbuf contains pkthdr.
- It is impossible for a mbuf that does not contain divert tag to sneak into
  divert_packet(); add assertion about it.
- Rearrange code a little bit.
sys/netinet/ip_divert.c