1
0
mirror of https://passt.top/passt synced 2025-01-12 07:32:58 +00:00

Commit Graph

  • 528a6517f8 tcp: Simplify endpoint validation using flowside information David Gibson 2024-07-18 15:26:32 +10:00
  • e2ea10e246 tcp: Manage outbound address via flow table David Gibson 2024-07-18 15:26:31 +10:00
  • 52d45f1737 tcp: Obtain guest address from flowside David Gibson 2024-07-18 15:26:30 +10:00
  • f9fe212b1f tcp, flow: Remove redundant information, repack connection structures David Gibson 2024-07-18 15:26:29 +10:00
  • 4e2d36e83f flow: Common address information for target side David Gibson 2024-07-18 15:26:28 +10:00
  • 8012f5ff55 flow: Common address information for initiating side David Gibson 2024-07-18 15:26:27 +10:00
  • ba74b1fea1 doc: Extend zero-recv test with methods using msghdr David Gibson 2024-07-17 14:52:23 +10:00
  • 01e5611ec3 doc: Test behaviour of closing duplicate UDP sockets David Gibson 2024-07-17 14:52:22 +10:00
  • 66a02c9f7c tcp_splice: Use parameterised macros for per-side event/flag bits David Gibson 2024-07-17 14:52:21 +10:00
  • 5235c47c79 flow: Introduce flow_foreach_sidei() macro David Gibson 2024-07-17 14:52:20 +10:00
  • 71d7985188 flow, tcp_splice: Prefer 'sidei' for variables referring to side index David Gibson 2024-07-17 14:52:19 +10:00
  • 9b125e7776 flow, icmp, tcp: Clean up helpers for getting flow from index David Gibson 2024-07-17 14:52:18 +10:00
  • 2fa91ee391 udp: Handle errors on UDP sockets David Gibson 2024-07-17 10:36:04 +10:00
  • 6bd8283bf9 util: Add AF_UNSPEC support to sockaddr_ntop() David Gibson 2024-07-17 10:36:03 +10:00
  • 4e1f850f61 udp, tcp: Tweak handling of no_udp and no_tcp flags David Gibson 2024-07-17 10:36:02 +10:00
  • 272d1d033c udp: Make udp_sock_recv static David Gibson 2024-07-17 10:36:01 +10:00
  • f79c42317f conf: Don't configure port forwarding for a disabled protocol David Gibson 2024-07-17 10:36:00 +10:00
  • a740e16fd1 tcp: handle shrunk window advertisements from guest Jon Maloy 2024-07-12 15:04:50 -04:00
  • e63d281871 tcp: leverage support of SO_PEEK_OFF socket option when available Jon Maloy 2024-07-12 15:04:49 -04:00
  • 8bd57bf25b doc: Trivial fix for reuseaddr-priority David Gibson 2024-07-15 10:43:07 +10:00
  • ec2691a12e doc: Test behaviour of zero length datagram recv()s David Gibson 2024-07-05 20:44:09 +10:00
  • 299c407501 doc: Add program to document and test assumptions about SO_REUSEADDR David Gibson 2024-07-05 20:44:08 +10:00
  • be0214cca6 udp: Consolidate datagram batching David Gibson 2024-07-05 20:44:07 +10:00
  • 69e5393c37 udp: Move some more of sock_handler tasks into sub-functions David Gibson 2024-07-05 20:44:06 +10:00
  • c6c61a9e1a udp: Don't repeatedly initialise udp[46]_eth_hdr David Gibson 2024-07-05 20:44:05 +10:00
  • 55aff45bc1 udp: Unify udp[46]_l2_iov David Gibson 2024-07-05 20:44:04 +10:00
  • 9f9b15f949 udp: Unify udp[46]_mh_splice David Gibson 2024-07-05 20:44:03 +10:00
  • fbd78b6f3e udp: Rename IOV and mmsghdr arrays David Gibson 2024-07-05 20:44:02 +10:00
  • f62c33d85f udp: Pass full epoll reference through more of sock handler path David Gibson 2024-07-05 20:44:01 +10:00
  • 8f8eb73482 flow: Add flow_sidx_valid() helper David Gibson 2024-07-05 20:44:00 +10:00
  • 74c1c5efcf util: sock_l4() determine protocol from epoll type rather than the reverse David Gibson 2024-07-05 20:43:59 +10:00
  • b625ed5fee conf: Use the right maximum buffer size for c->sock_path Stefano Brivio 2024-06-27 22:16:45 +02:00
  • 403a7c14a0 tcp_splice: Check return value of setsockopt() for SO_RCVLOWAT Stefano Brivio 2024-06-27 00:55:07 +02:00
  • 21ee1eb2de conf: Copy up to MAXDNSRCH - 1 bytes, not MAXDNSRCH Stefano Brivio 2024-06-27 00:50:56 +02:00
  • 1ee2ecade3 udp: Reduce scope of rport in udp_invert_portmap() 2024_06_24.1ee2eca Stefano Brivio 2024-06-21 15:21:26 +02:00
  • 054697598f Revert "udp: Make rport calculation more local" Stefano Brivio 2024-06-21 13:59:48 +02:00
  • c66f0341d9 log: Don't report syslog failures to stderr after initialisation Stefano Brivio 2024-06-20 16:59:29 +02:00
  • e7323e515a conf, passt: Don't call __openlog() if a log file is used Stefano Brivio 2024-06-19 21:25:30 +02:00
  • dba7f0f5ce treewide: Replace strerror() calls Stefano Brivio 2024-06-17 11:55:04 +02:00
  • 92a22fef93 treewide: Replace perror() calls with calls to logging functions Stefano Brivio 2024-06-15 00:37:11 +02:00
  • c1140df889 log: Add _perror() logging function variants Stefano Brivio 2024-06-15 00:25:23 +02:00
  • afd9cdc9bb log, passt: Always print to stderr before initialisation is complete Stefano Brivio 2024-06-14 22:47:51 +02:00
  • 8c2f24a560 conf, log: Instead of abusing log levels, add log_conf_parsed flag Stefano Brivio 2024-06-14 19:00:27 +02:00
  • bca0fefa32 conf, passt: Make --stderr do nothing, and deprecate it Stefano Brivio 2024-06-19 20:10:10 +02:00
  • b74801645c conf, passt: Don't try to log to stderr after we close it Stefano Brivio 2024-06-06 17:18:32 +02:00
  • 65923ba798 conf: Accept duplicate and conflicting options, the last one wins Stefano Brivio 2024-06-18 18:04:49 +02:00
  • 62de6140d9 netlink: Strip nexthop identifiers when duplicating routes Stefano Brivio 2024-06-18 08:17:51 +02:00
  • 1544a43863 passt.1, qrap.1: align license description with SPDX identifier Danish Prakash 2024-06-19 15:10:55 +05:30
  • f301bb18b5 netlink: Ignore EHOSTUNREACH failures when duplicating routes Stefano Brivio 2024-06-18 13:00:51 +02:00
  • 450a6131be netlink: With no default route, pick the first interface with a route Stefano Brivio 2024-06-18 18:55:43 +02:00
  • 54a9d3801b tcp: Don't rely on bind() to fail to decide that connection target is valid Stefano Brivio 2024-06-18 12:32:17 +02:00
  • 020ff7a40e siphash: Remove stale prototypes David Gibson 2024-06-19 12:59:06 +10:00
  • 7e87bd98ac udp: Move management of udp[46]_localname into udp_splice_send() David Gibson 2024-06-14 11:51:08 +10:00
  • ff57f8ddc6 udp: Rework how we divide queued datagrams between sending methods David Gibson 2024-06-14 11:51:07 +10:00
  • 63db7dcdbf udp: Fold checking of splice flag into udp_mmh_splice_port() David Gibson 2024-06-14 11:51:06 +10:00
  • 523fbc5af7 util: Split construction of bind socket address from the rest of sock_l4() David Gibson 2024-06-14 11:51:05 +10:00
  • 4070bac7a4 tap: use in->buf_size rather than sizeof(pkt_buf) Laurent Vivier 2024-06-13 14:36:55 +02:00
  • 7290335b14 iov: remove iov_copy() Laurent Vivier 2024-06-13 14:36:54 +02:00
  • 0c335d751a vhost-user: compare mode MODE_PASTA and not MODE_PASST Laurent Vivier 2024-06-13 14:36:53 +02:00
  • 377b666dc9 udp: rename udp_sock_handler() to udp_buf_sock_handler() Laurent Vivier 2024-06-13 14:36:52 +02:00
  • e7ac995217 udp: refactor UDP header update functions Laurent Vivier 2024-06-13 14:36:51 +02:00
  • 9ecf7fedc5 tap: refactor packets handling functions Laurent Vivier 2024-06-13 14:36:50 +02:00
  • fba2b544b6 tcp: move buffers management functions to their own file Laurent Vivier 2024-06-13 14:36:49 +02:00
  • ec26fa013a tcp: extract buffer management from tcp_send_flag() Laurent Vivier 2024-06-13 14:36:48 +02:00
  • d949667436 cppcheck: Suppress constParameterCallback errors David Gibson 2024-06-08 16:30:40 +10:00
  • 8a83b530fe selinux: Allow access to user_devpts 2024_06_07.8a83b53 Derek Schrock 2024-05-26 18:28:42 -04:00
  • ec416fdcc4 tcp, flow: Fix some error paths which didn't clean up flows properly David Gibson 2024-06-07 11:55:24 +10:00
  • 3f63743a65 util: Use 'long' to represent millisecond durations David Gibson 2024-06-06 20:09:49 +10:00
  • f9e8ee0777 lineread: Use ssize_t for line lengths David Gibson 2024-06-06 20:09:48 +10:00
  • c919bbbdd3 conf: Safer parsing of MAC addresses David Gibson 2024-06-06 20:09:47 +10:00
  • bda80ef53f util: Use unsigned indices for bits in bitmaps David Gibson 2024-06-06 20:09:46 +10:00
  • 0e36fe1a43 clang-tidy: Enable the bugprone-macro-parentheses check David Gibson 2024-06-06 20:09:45 +10:00
  • 7094b91d10 Remove pointless macro parameters in CALL_PROTO_HANDLER David Gibson 2024-06-06 20:09:44 +10:00
  • c80fa6a6bb udp: Make rport calculation more local David Gibson 2024-06-06 20:09:42 +10:00
  • d2afb4b625 tcp: Make pointer const in tcp_revert_seq David Gibson 2024-06-06 20:09:41 +10:00
  • b3aeb004ea log: Remove log_to_stdout option David Gibson 2024-06-05 10:42:42 +10:00
  • 7cb2088835 conf: Don't print usage via the logging subsystem David Gibson 2024-06-05 10:42:41 +10:00
  • e651197b5c conf: Remove unhelpful usage() wrapper David Gibson 2024-06-05 10:42:40 +10:00
  • e84a01e94c tcp: move seq_to_tap update to when frame is queued Jon Maloy 2024-06-04 14:29:08 -04:00
  • 765eb0bf16 apparmor: Fix comments after PID file and AF_UNIX socket creation refactoring 2024_05_23.765eb0b Stefano Brivio 2024-05-23 13:14:22 +02:00
  • 0608ec42f2 conf, passt.h: Rename pid_file in struct ctx to pidfile Stefano Brivio 2024-05-22 20:39:30 +02:00
  • c9b2413465 conf, passt, tap: Open socket and PID files before switching UID/GID Stefano Brivio 2024-05-22 20:18:19 +02:00
  • ba23b05545 passt, util: Move opening of PID file to its own function Stefano Brivio 2024-05-22 19:50:58 +02:00
  • 57d8aa8ffe util: Rename write_pidfile() to pidfile_write() Stefano Brivio 2024-05-22 19:52:54 +02:00
  • cbca08cd38 tap: Split tap_sock_unix_init() into opening and listening parts Stefano Brivio 2024-05-22 19:31:12 +02:00
  • fcfb592adc passt, tap: Don't use -1 as uninitialised value for fd_tap_listen Stefano Brivio 2024-05-22 19:35:25 +02:00
  • d02bb6ca05 tap: Move all-ones initialisation of mac_guest to tap_sock_init() Stefano Brivio 2024-05-22 18:18:11 +02:00
  • 45b8632dcc conf: Don't lecture user about starting us as root Stefano Brivio 2024-05-22 16:54:03 +02:00
  • 3f917b326b netlink, test: Ignore deprecated addresses David Gibson 2024-05-22 17:22:32 +10:00
  • cc801fb38f tcp: Remove interim 'tapside' field from connection David Gibson 2024-05-21 15:57:08 +10:00
  • 8a2accb847 flow: Record the pifs for each side of each flow David Gibson 2024-05-21 15:57:07 +10:00
  • 43571852e6 flow: Make side 0 always be the initiating side David Gibson 2024-05-21 15:57:06 +10:00
  • 0060acd11b flow: Clarify and enforce flow state transitions David Gibson 2024-05-21 15:57:05 +10:00
  • a63199832a inany: Better helpers for using inany and specific family addrs together David Gibson 2024-05-21 15:57:04 +10:00
  • 7a832a8a0e flow: Properly type callbacks to protocol specific handlers David Gibson 2024-05-21 15:57:03 +10:00
  • 1a20370b36 util, tcp: Add helper to display socket addresses David Gibson 2024-05-21 14:48:03 +10:00
  • 3ff3a8a467 apparmor: Fix passt abstraction Maxime Bélair 2024-05-17 13:50:54 +02:00
  • 6cdc9fd51b apparmor: allow netns paths on /tmp Paul Holzinger 2024-05-13 19:41:55 +02:00
  • 80f7ff2996 clang-tidy: Suppress macro to enum conversion warnings David Gibson 2024-05-14 00:57:58 +10:00
  • 29bd08ff0f conf: Fix clang-tidy warning about using an undefined enum value David Gibson 2024-05-14 00:57:57 +10:00