Bug #1856 ยป issue1856_workaround.patch
sys/netinet/udp_usrreq.c | ||
---|---|---|
#include <sys/syslog.h>
|
||
#include <sys/in_cksum.h>
|
||
#include <sys/mplock2.h>
|
||
#include <sys/thread2.h>
|
||
#include <sys/socketvar2.h>
|
||
... | ... | |
((struct ip *)ui)->ip_tos = inp->inp_ip_tos; /* XXX */
|
||
udpstat.udps_opackets++;
|
||
get_mplock();
|
||
error = ip_output(m, inp->inp_options, &inp->inp_route,
|
||
(inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST)) |
|
||
IP_DEBUGROUTE,
|
||
inp->inp_moptions, inp);
|
||
rel_mplock();
|
||
/*
|
||
* If this is the first data gram sent on an unbound and unconnected
|