aboutgitcodebugslistschat
path: root/util.h
Commit message (Expand)AuthorAgeFilesLines
* udp: Handle errors on UDP socketsDavid Gibson2024-07-171-0/+3
* util: sock_l4() determine protocol from epoll type rather than the reverseDavid Gibson2024-07-051-1/+2
* util: Use 'long' to represent millisecond durationsDavid Gibson2024-06-071-1/+1
* util: Use unsigned indices for bits in bitmapsDavid Gibson2024-06-071-3/+3
* passt, util: Move opening of PID file to its own functionStefano Brivio2024-05-231-0/+1
* util: Rename write_pidfile() to pidfile_write()Stefano Brivio2024-05-231-1/+1
* util, tcp: Add helper to display socket addressesDavid Gibson2024-05-221-0/+14
* tcp: Replace TCP buffer structure by an iovec arrayLaurent Vivier2024-04-191-0/+3
* conf: Don't fail if the template interface doesn't have a MAC addressStefano Brivio2024-04-191-0/+1
* pasta, util: Align stack area for clones to maximum natural alignmentStefano Brivio2024-04-191-1/+3
* util: Add helper to return name of address familyDavid Gibson2024-04-051-0/+18
* pcap: Use clock_gettime() instead of gettimeofday()Stefano Brivio2024-03-141-0/+1
* util: move IP stuff from util.[ch] to ip.[ch]Laurent Vivier2024-03-061-76/+0
* util: Allow IN4_IS_* macros to operate on untyped addressesDavid Gibson2024-02-291-4/+4
* util: Add write_remainder() helperDavid Gibson2024-02-291-0/+1
* treewide: Use sa_family_t for address family variablesDavid Gibson2024-02-271-1/+1
* util: Use htonl_constant() in more placesDavid Gibson2023-12-271-2/+2
* treewide: Add IN4ADDR_ANY_INIT macroDavid Gibson2023-12-271-0/+3
* tcp: Switch hash table to linear probing instead of chainingDavid Gibson2023-12-271-0/+28
* util: MAX_FROM_BITS() should be unsignedDavid Gibson2023-12-041-1/+1
* port_fwd, util: Include additional headers to fix build with muslStefano Brivio2023-12-021-0/+1
* port_fwd, util: Don't bind UDP ports with opposite-side bound TCP portsStefano Brivio2023-11-221-0/+1
* util: Add open_in_ns() helperDavid Gibson2023-11-071-0/+1
* port_fwd: Move automatic port forwarding code to port_fwd.[ch]David Gibson2023-11-071-2/+0
* cppcheck: Make many pointers constDavid Gibson2023-10-041-2/+2
* util: Consolidate and improve workarounds for clang-tidy issue 58992David Gibson2023-09-271-0/+41
* Avoid shadowing index(3)David Gibson2023-09-271-1/+1
* util: Fix licensing information display in --version2023_09_08.05627dcStefano Brivio2023-09-081-2/+2
* tcp, udp: Don't include destination address in partially precomputed csumsDavid Gibson2023-08-221-1/+3
* util: Make ns_enter() a void function and report setns() errorsDavid Gibson2023-08-041-1/+1
* util, conf: Add and use ns_is_init() helperStefano Brivio2023-05-231-0/+2
* passt: Relicense to GPL 2.0, or any later versionStefano Brivio2023-04-061-1/+1
* util: Carry own definition of __bswap_constant{16,32}Stefano Brivio2023-03-091-0/+11
* Fix definitions of SOCKET_MAX, TCP_MAX_CONNSStefano Brivio2023-02-271-0/+2
* Make assertions actually usefulDavid Gibson2023-02-121-1/+19
* udp: Use abstracted tap headerDavid Gibson2023-01-231-7/+0
* util: Parameterize ethernet header initializer macroDavid Gibson2023-01-231-9/+2
* util: Introduce hton*_constant() in place of #ifdefsDavid Gibson2023-01-231-26/+11
* udp: Pre-populate msg_names with local addressDavid Gibson2023-01-131-0/+7
* util, pasta: Add do_clone() wrapper around __clone2() and clone()Stefano Brivio2022-11-161-3/+5
* Use typing to reduce chances of IPv4 endianness errorsDavid Gibson2022-11-041-2/+10
* util: Set NS_FN_STACK_SIZE to one eighth of ulimit-reported maximum stack size2022_10_22.b68da10Stefano Brivio2022-10-221-1/+1
* Replace FWRITE with a functionDavid Gibson2022-10-151-12/+1
* util.h: Add missing gcc pragma push before pragma popStefano Brivio2022-10-151-0/+1
* Don't create 'tap' socket for ports that are bound to loopback onlyStefano Brivio2022-10-151-0/+3
* conf, tcp, udp: Allow specification of interface to bind toStefano Brivio2022-10-151-1/+2
* conf, log, Makefile: Add versioning informationStefano Brivio2022-10-151-0/+8
* Move logging functions to a new file, log.cStefano Brivio2022-10-141-16/+0
* udp: Replace pragma to ignore bogus stringop-overread warning with workaroundStefano Brivio2022-09-291-23/+0
* cppcheck: Use inline suppression for ffsl()David Gibson2022-09-291-0/+1