issue1856_workaround.patch

eocallaghan, 10/02/2010 11:00 AM

Download (784 Bytes)

View differences:

sys/netinet/udp_usrreq.c
86 86
#include <sys/syslog.h>
87 87
#include <sys/in_cksum.h>
88 88

  
89
#include <sys/mplock2.h>
90

  
89 91
#include <sys/thread2.h>
90 92
#include <sys/socketvar2.h>
91 93

  
......
852 854
	((struct ip *)ui)->ip_tos = inp->inp_ip_tos;	/* XXX */
853 855
	udpstat.udps_opackets++;
854 856

  
857
	get_mplock();
855 858
	error = ip_output(m, inp->inp_options, &inp->inp_route,
856 859
	    (inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST)) |
857 860
	    IP_DEBUGROUTE,
858 861
	    inp->inp_moptions, inp);
862
	rel_mplock();
859 863

  
860 864
	/*
861 865
	 * If this is the first data gram sent on an unbound and unconnected