Michael Davidsaver
f67f27e96b
Portable capture of destination interface and IP address
...
Use recvmsg() and control messages IP_PKTINFO (Linux, OSX, Windows)
or IP_ORIGDSTADDR and IP_RECVIF (RTEMS w/ libbsd) to find the
index of the logical interface through which a UDP packet was received,
and the destination address from the IPv4 header.
Also, clear IP_MULTICAST_ALL on Linux to disable non-compliant legacy brokenness
and receive only those multicasts we are interested in.
2022-04-05 07:57:16 -07:00
Michael Davidsaver
7a9d5cb6ab
WIN32: SetErrorMode(0)
2020-06-16 16:39:00 -07:00
Michael Davidsaver
2d075cbc1c
testsock show errno
2020-05-22 09:17:22 -07:00
Michael Davidsaver
e2513db4d9
MSVC need osiSockAttach()
2020-03-31 13:07:50 -07:00
Michael Davidsaver
d452e009ce
libevent 2.0 compat
2020-03-20 09:23:06 -07:00
Michael Davidsaver
c0c7348e89
fixup FixedBuf usage
2019-12-16 09:01:16 -08:00
Michael Davidsaver
92c513d6dd
de-templateize xcode
2019-12-10 19:28:54 -08:00
Michael Davidsaver
801d295c1f
start PVD
2019-12-10 17:56:40 -08:00
Michael Davidsaver
083bad3e28
redo namespaces
2019-11-19 16:08:03 -08:00
Michael Davidsaver
bab82affb8
redo packet build/parse
...
now with evbuffer
2019-11-19 16:06:43 -08:00
Michael Davidsaver
84ac6ed091
move sockaddr wrapper to public API
2019-10-24 10:38:25 -07:00
Michael Davidsaver
8c40929e5c
all sorts of changes
2019-10-23 13:29:31 -07:00
Michael Davidsaver
5301785233
drop sockaddr_storage
2019-10-22 18:27:53 -07:00
Michael Davidsaver
e125fdf990
fixup (de)serialize
2019-10-21 16:27:47 -07:00
Michael Davidsaver
068b12bd99
fixup
2019-10-20 19:37:08 -07:00
Michael Davidsaver
466044d6a5
initial
2019-10-19 20:17:39 -07:00