aboutgitcodebugslistschat
path: root/util.c
Commit message (Expand)AuthorAgeFilesLines
* util: sock_l4() determine protocol from epoll type rather than the reverseDavid Gibson2024-07-051-22/+26
* treewide: Replace strerror() callsStefano Brivio2024-06-211-7/+5
* util: Split construction of bind socket address from the rest of sock_l4()David Gibson2024-06-141-53/+70
* util: Use 'long' to represent millisecond durationsDavid Gibson2024-06-071-1/+1
* util: Use unsigned indices for bits in bitmapsDavid Gibson2024-06-071-4/+4
* passt, util: Move opening of PID file to its own functionStefano Brivio2024-05-231-0/+22
* util: Rename write_pidfile() to pidfile_write()Stefano Brivio2024-05-231-3/+3
* util, tcp: Add helper to display socket addressesDavid Gibson2024-05-221-0/+56
* util: fix confusion between offset in the iovec array and in the entry2024_03_20.71dd405Laurent Vivier2024-03-201-4/+5
* icmp: Use 'flowside' epoll references for ping socketsDavid Gibson2024-03-121-3/+1
* util: move IP stuff from util.[ch] to ip.[ch]Laurent Vivier2024-03-061-55/+0
* util: Add write_remainder() helperDavid Gibson2024-02-291-0/+35
* treewide: Use sa_family_t for address family variablesDavid Gibson2024-02-271-1/+1
* treewide: Make a bunch of pointer variables pointers to constDavid Gibson2024-01-161-2/+2
* util: Make sock_l4() treat empty string ifname like NULLDavid Gibson2023-12-271-1/+1
* treewide: Avoid in_addr_tDavid Gibson2023-12-271-1/+1
* util: Drop explicit setting to INADDR_ANY/in6addr_any in sock_l4()David Gibson2023-12-271-4/+0
* port_fwd, util: Don't bind UDP ports with opposite-side bound TCP portsStefano Brivio2023-11-221-0/+21
* util: Add open_in_ns() helperDavid Gibson2023-11-071-0/+53
* port_fwd: Move automatic port forwarding code to port_fwd.[ch]David Gibson2023-11-071-64/+1
* cppcheck: Make many pointers constDavid Gibson2023-10-041-2/+3
* Avoid shadowing index(3)David Gibson2023-09-271-6/+6
* epoll: Split handling of listening TCP sockets into their own handlerDavid Gibson2023-08-131-1/+1
* epoll: Generalize epoll_ref to cover things other than socketsDavid Gibson2023-08-131-7/+20
* util: Make ns_enter() a void function and report setns() errorsDavid Gibson2023-08-041-5/+3
* Use C11 anonymous members to make poll refs less verbose to useDavid Gibson2023-08-041-2/+2
* util, conf: Add and use ns_is_init() helperStefano Brivio2023-05-231-0/+25
* passt: Relicense to GPL 2.0, or any later versionStefano Brivio2023-04-061-1/+1
* tcp, udp, util: Pass socket creation errors all the way upStefano Brivio2023-03-091-13/+18
* treewide: Fix header includes to build with muslChris Kuhn2023-03-091-0/+1
* util: Add own prototype for __clone2() on ia642023_02_27.c538ee8Stefano Brivio2023-02-271-0/+9
* Make assertions actually usefulDavid Gibson2023-02-121-1/+0
* util: Always return -1 on error in sock_l4()David Gibson2022-11-251-1/+1
* util: Allow sock_l4() to open dual stack socketsDavid Gibson2022-11-251-2/+15
* util, pasta: Add do_clone() wrapper around __clone2() and clone()Stefano Brivio2022-11-161-0/+21
* arp, tap, util: Don't use perror() after seccomp filter is installedStefano Brivio2022-11-161-3/+3
* Replace FWRITE with a functionDavid Gibson2022-10-151-0/+33
* conf, tcp, udp: Allow specification of interface to bind toStefano Brivio2022-10-151-1/+18
* util: Check return value of lseek() while reading bound ports from procfsStefano Brivio2022-10-151-3/+7
* Move logging functions to a new file, log.cStefano Brivio2022-10-141-120/+1
* clang-tidy: Suppress warning about unchecked error in logfn macroDavid Gibson2022-09-291-1/+1
* Handle userns isolation and dropping root at the same timeDavid Gibson2022-09-131-5/+0
* Move self-isolation code into a separate fileDavid Gibson2022-09-131-51/+0
* Consolidate determination of UID/GID to run asDavid Gibson2022-09-131-50/+0
* Split checking for root from dropping root privilegeDavid Gibson2022-09-131-3/+26
* Don't store UID & GID persistently in the context structureDavid Gibson2022-09-131-6/+6
* util: Drop any supplementary group before dropping privilegesStefano Brivio2022-08-301-1/+1
* Make substructures for IPv4 and IPv6 specific context informationDavid Gibson2022-07-301-2/+2
* Allow different external interfaces for IPv4 and IPv6 connectivityDavid Gibson2022-07-301-1/+1
* util: Fix debug print on failed SO_REUSEADDR setting in sock_l4()Stefano Brivio2022-07-141-1/+1