aboutgitcodebugslistschat
path: root/util.c
Commit message (Expand)AuthorAgeFilesLines
* treewide: use _exit() over exit()Paul Holzinger2025-02-051-4/+4
* util: Add read_remainder() and read_all_buf()Stefano Brivio2025-02-041-0/+84
* util: Rename and make global vu_remove_watch()David Gibson2025-02-031-0/+10
* treewide: Dodge dynamic memory allocation in strerror() from glibc > 2.402024_12_11.09478d5Stefano Brivio2024-12-111-3/+3
* util: Add general low-level random bytes helperDavid Gibson2024-11-141-0/+54
* linux_dep: Fix CLOSE_RANGE_UNSHARE availability handlingDavid Gibson2024-11-081-2/+14
* linux_dep: Move close_range() conditional handling to linux_dep.hDavid Gibson2024-11-081-0/+1
* tap, tcp, util: Add some missing SOCK_CLOEXEC flagsStefano Brivio2024-11-081-1/+2
* util: Don't use errno after a successful call in __daemon()2024_10_30.ee7d0b6Stefano Brivio2024-10-301-10/+5
* treewide: Suppress clang-tidy warning if we already use O_CLOEXECStefano Brivio2024-10-301-16/+11
* treewide: Comply with CERT C rule ERR33-C for snprintf()Stefano Brivio2024-10-301-0/+30
* conf: Add command line switch to enable IP_FREEBIND socket optionDavid Gibson2024-10-041-0/+16
* util, pif: Replace sock_l4() with pif_sock_l4()David Gibson2024-09-251-52/+0
* util: Remove possible quadratic behaviour from write_remainder()David Gibson2024-09-181-10/+17
* util: Add helper to write() all of a bufferDavid Gibson2024-09-181-0/+25
* util: Fix order of operands and carry of one second in timespec_diff_us()Stefano Brivio2024-09-061-1/+1
* util: Don't stop on unrelated values when looking for --fd in close_open_files()Stefano Brivio2024-08-211-1/+1
* util: Correct sock_l4() binding for link local addressesDavid Gibson2024-08-211-2/+1
* util: Helper for formatting MAC addressesDavid Gibson2024-08-211-0/+19
* conf: Stop parsing options at first non-option argumentStefano Brivio2024-08-081-1/+1
* passt, util: Close any open file that the parent might have leakedStefano Brivio2024-08-081-0/+41
* util: Some corrections for timespec_diff_usDavid Gibson2024-08-071-2/+2
* util: Use unsigned (size_t) value for iov lengthDavid Gibson2024-08-061-3/+2
* log, util: Fix sub-second part in relative log time calculationStefano Brivio2024-07-261-7/+18
* udp: Rename UDP listening socketsDavid Gibson2024-07-191-1/+1
* udp: Handle "spliced" datagrams with per-flow socketsDavid Gibson2024-07-191-0/+1
* flow: Helper to create sockets based on flowsideDavid Gibson2024-07-191-3/+3
* udp: Handle errors on UDP socketsDavid Gibson2024-07-171-0/+29
* util: Add AF_UNSPEC support to sockaddr_ntop()David Gibson2024-07-171-0/+4
* 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