git: ip/udp: Make input source address and source port saving MPSAFE

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu May 23 00:30:15 PDT 2013


commit c77e888b82a328b5c1339b4a7632a07eda3b8505
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu May 23 15:29:24 2013 +0800

    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.

Summary of changes:
 sys/netinet/udp_usrreq.c | 61 +++++++++++++++++++++++++++++++++---------------
 1 file changed, 42 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c77e888b82a328b5c1339b4a7632a07eda3b8505


-- 
DragonFly BSD source repository



More information about the Commits mailing list