Factor out 'curnetport'
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 27 Dec 2008 07:55:04 +0000 (15:55 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 27 Dec 2008 08:00:33 +0000 (16:00 +0800)
commitc244d61358af00df27ca802443abc513c24bd742
treeeacdec4575e485fa53841b4dc95221c9c4d17e2b
parent1dbb35168d95be3f0a483542772161823a971dab
Factor out 'curnetport'
This macro returns the current thread's msgport, if the current thread
is a network protocol thread, else the current CPU's netisr msgport is
returned; the latter case should be fixed.
sys/net/bridge/if_bridge.c
sys/net/ipfw/ip_fw2.c
sys/net/netisr.c
sys/net/netisr.h
sys/netinet/if_ether.c