ip/udp: Make input source address and source port saving MPSAFE
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 23 May 2013 07:29:24 +0000 (15:29 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 23 May 2013 07:29:24 +0000 (15:29 +0800)
commitc77e888b82a328b5c1339b4a7632a07eda3b8505
tree090f0155d04a0a3a7b4719846913803094a851c6
parent834fa505fcff22e773a50f6d305430b2535cafd2
ip/udp: Make input source address and source port saving MPSAFE

Change the global variable udp_in, udp_in6 and udp_ip6 into stack variable
and passing them around.  This should unbreak applications which depend
on received datagrams' source address or source port.
sys/netinet/udp_usrreq.c