summaryrefslogtreecommitdiff
path: root/src/basic/missing_socket.h
Commit message (Collapse)AuthorAgeFilesLines
* socket-util: add sockopt helper for controlling IP_RECVFRAGSIZELennart Poettering2020-12-071-0/+8
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* missing: add IPV6_FREEBINDYu Watanabe2020-09-041-0/+4
|
* sd-device: check netlink netns matches host netns before using monitorLennart Poettering2020-05-291-0/+5
| | | | | | | | | | | | | Tracking down #15931 confused the hell out of me, since running homed in gdb from the command line worked fine, but doing so as a service failed. Let's make this more debuggable and check if we live in the host netns when allocating a new udev monitor. This is just debug stuff, so that if things don't work, a quick debug run will reveal what is going on. That said, while we are at it, also fix unexpected closing of passed in fd when failing.
* socket-util: add wrappers for binding socket to ifindex/ifnameLennart Poettering2019-03-181-0/+4
| | | | | | | | | | | socket_bind_to_ifindex() uses the the SO_BINDTOIFINDEX sockopt of kernel 5.0, with a fallback to SO_BINDTODEVICE on older kernels. socket_bind_to_ifname() is a trivial wrapper around SO_BINDTODEVICE, the only benefit of using it instead of SO_BINDTODEVICE directly is that it determines the size of the interface name properly so that it also works for unbinding. Moreover, it's an attempt to unify our invocations of the sockopt with a size of strlen(ifname) rather than strlen(ifname)+1...
* missing: move socket related definitions to missing_socket.hYu Watanabe2018-12-061-0/+60