Date: Thu, 16 Jun 2016 19:49:58 +0200 From: Julian Kornberger <jk@kornberger.name> To: John Baldwin <jhb@freebsd.org>, freebsd-hackers@freebsd.org Subject: Re: Usage of sosend() and its context Message-ID: <5762E6C6.7030401@kornberger.name> In-Reply-To: <2110371.3nz8SNp04Y@ralph.baldwin.cx> References: <575F20CF.1020103@kornberger.name> <2110371.3nz8SNp04Y@ralph.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16.06.2016 18:40, John Baldwin wrote: > It's possible to ask sosend() to not block and fail with EWOULDBLOCK > instead by passing MSG_NOWAIT in flags. However, you might still block > on sblock(), so you may need to defer your work to a sleepable context > using something like a taskqueue. In this case I better build the IP packet manually and deliver it via ip_output/ip6_output. Do you know where I can find a code snipped that returns the recipient IP address and recipient UDP port of a IP4/IPv6 packet stored in a mbuf? -- Julian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5762E6C6.7030401>