Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 23:08:31 +0200
From:      Julian Kornberger <jk@kornberger.name>
To:        freebsd-hackers@freebsd.org
Subject:   Usage of sosend() and its context
Message-ID:  <575F20CF.1020103@kornberger.name>

next in thread | raw e-mail | index | archive | help
Hi,

I am building a kernel module for fastd [1] and have the problem, that 
on one of three machines the sosend() call seems to block. I use 
sosend() [2] in a tunneling function that is set by 
udp_set_kernel_tunneling().

Since I don't know which thread to pass to sosend() I just use 
curthread. Is it possible that I should not use sosend() in this context 
and instead build the IP packet manually and pass it to ip_output()? Any 
other hints?

[1] https://fastd.readthedocs.io/
[2] 
https://github.com/digineo/fastd/blob/97fd40b9992778a3bf11756f41aa7c2615bba2f3/kmod/fastd.c#L664

Regards,
Julian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?575F20CF.1020103>