<feed xmlns='http://www.w3.org/2005/Atom'>
<title>passt/icmp.c, branch 2026_12_04.a39d958</title>
<subtitle>Plug A Simple Socket Transport</subtitle>
<link rel='alternate' type='text/html' href='https://passt.top/passt/'/>
<entry>
<title>icmp, tcp, udp: Change Layer-4 protocol handlers to return unsigned</title>
<updated>2026-12-02T21:59:29+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2026-12-01T01:23:45+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=8ce30019e739080a5a8292d567b8e48631f2f6fa'/>
<id>8ce30019e739080a5a8292d567b8e48631f2f6fa</id>
<content type='text'>
...to avoid embarrassing mistakes like the one fixed by the previous
commit: they are always supposed to return a count of consumed
packets, and handle protocol errors themselves.

Note that, strictly speaking, those should all return size_t instead
of unsigned int, but changing tcp_tap_handler() to return size_t
triggers something that looks like a false positive in Coverity Scan
which I still need to investigate.  Just fix the signedness for the
moment being.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
...to avoid embarrassing mistakes like the one fixed by the previous
commit: they are always supposed to return a count of consumed
packets, and handle protocol errors themselves.

Note that, strictly speaking, those should all return size_t instead
of unsigned int, but changing tcp_tap_handler() to return size_t
triggers something that looks like a false positive in Coverity Scan
which I still need to investigate.  Just fix the signedness for the
moment being.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>udp: Don't share a preserved source port with other sockets</title>
<updated>2026-12-02T21:58:01+00:00</updated>
<author>
<name>Gerwim Feiken</name>
<email>info@gerwim.nl</email>
</author>
<published>2026-12-01T23:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=3f594423487c44db8d78748922cfb614b4b77518'/>
<id>3f594423487c44db8d78748922cfb614b4b77518</id>
<content type='text'>
For a UDP flow initiated from the guest, passt keeps the guest's
source port on the host side (fwd_nat_from_tap()) and binds the flow
socket with SO_REUSEADDR (sock_l4_()). Several passt instances in one
network namespace -- one per VM, as a VM manager spawning passt from
one daemon does -- can then each bind the same port towards the same
destination, typically the resolver behind --dns-forward. Their
sockets share one identical 4-tuple, and the kernel delivers each
reply to only one of them: the other guest's queries go unanswered
until the flow expires, and the guest owning the receiving socket gets
answers to queries it never sent.

Bind the host side socket of a flow initiated from the tap interface
without SO_REUSEADDR, so that the bind fails if any other socket holds
the port, and fall back to a port chosen by the kernel in that case.
udp_flow_new() reads the actual port back with getsockname(), as it
already does for the address. Listening sockets, and flows initiated
from them, keep SO_REUSEADDR.

Link: https://bugs.passt.top/show_bug.cgi?id=223
Signed-off-by: Gerwim Feiken &lt;info@gerwim.nl&gt;
[jmaloy: Don't pass 'exclusive' through the PIF_SPLICE path in
 flowside_sock_l4(): flows initiated from the tap interface never
 target it, assert that instead]
Signed-off-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For a UDP flow initiated from the guest, passt keeps the guest's
source port on the host side (fwd_nat_from_tap()) and binds the flow
socket with SO_REUSEADDR (sock_l4_()). Several passt instances in one
network namespace -- one per VM, as a VM manager spawning passt from
one daemon does -- can then each bind the same port towards the same
destination, typically the resolver behind --dns-forward. Their
sockets share one identical 4-tuple, and the kernel delivers each
reply to only one of them: the other guest's queries go unanswered
until the flow expires, and the guest owning the receiving socket gets
answers to queries it never sent.

Bind the host side socket of a flow initiated from the tap interface
without SO_REUSEADDR, so that the bind fails if any other socket holds
the port, and fall back to a port chosen by the kernel in that case.
udp_flow_new() reads the actual port back with getsockname(), as it
already does for the address. Listening sockets, and flows initiated
from them, keep SO_REUSEADDR.

Link: https://bugs.passt.top/show_bug.cgi?id=223
Signed-off-by: Gerwim Feiken &lt;info@gerwim.nl&gt;
[jmaloy: Don't pass 'exclusive' through the PIF_SPLICE path in
 flowside_sock_l4(): flows initiated from the tap interface never
 target it, assert that instead]
Signed-off-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>icmp: Discard echo replies too big to be forwarded to the guest</title>
<updated>2026-11-22T23:38:58+00:00</updated>
<author>
<name>Stuart Thomas</name>
<email>Stuart.Thomas@triageforge.co.uk</email>
</author>
<published>2026-11-04T00:58:24+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=9113dc6692f4c37d5d5363e640ee5340612123ea'/>
<id>9113dc6692f4c37d5d5363e640ee5340612123ea</id>
<content type='text'>
Original patch and report by Stuart Thomas, commit message rewritten
for clarity, with added details, after further investigation.

Stuart reports that, even though the data length of ICMP and ICMPv6
echo requests we forward from the guest is limited by the maximum
guest MTU (see also https://bugs.passt.top/show_bug.cgi?id=55), and
even though RFC 792 mandates that the echo reply returns the original
data as received in the request, it's actually possible, at least
using local sockets, to send back a (reassembled) reply that's bigger
than the original request.

To cover that case, we need to clamp the size of the replies we relay
via icmp_sock_handler(), because, otherwise, tap_icmp4_send() and
tap_icmp6_send() could try to exceed the available buffer by 34 bytes
for IPv4 (ETH_HLEN plus IP header) or 54 bytes for IPv6 (ETH_HLEN plus
IPv6 header).  This is actually prevented by __memcpy_chk() to a
known size object, which leads to a reliable abort, and, even if
somebody happens to disable FORTIFY_SOURCE guards in their builds,
this would hit the stack protector, resulting again in termination.

Regardless of this, it's probably wiser to discard the reply and
continue, as this condition is unlikely to indicate a situation where
we can't proceed with regular functionality and a restart would help
to recover from.

Only the guest can trigger this condition by sending a request to a
particular peer, set up to reply with an invalid message, with the
sole outcome of sabotaging its own connectivity (which can anyway be
done in more direct ways), so this is a robustness issue rather than
a security problem.

As alternative fixes, we considered:

- truncating the reply, but this wouldn't really fit our network
  transparency goals, and on top of that we would need to recalculate
  the checksum, which would mean substantially modifying ICMP messages
  even further

- dropping any reply that exceeds (with headers) the link MTU, instead
  of letting the guest eventually do that.  This would be more correct
  in some sense, but also less transparent, and would make things
  harder to debug in case any problem in this sense is suspected

Simply drop the oversized reply instead.  As Stuart already noted, we
are not able to forward them (intact) anyway.

We would like to thank Stuart Thomas for the detailed investigation,
for the comprehensive report, for the patch, and for sharing his
results in a clear, honest way.

Reported-by: Stuart Thomas &lt;Stuart.Thomas@triageforge.co.uk&gt;
Signed-off-by: Stuart Thomas &lt;Stuart.Thomas@triageforge.co.uk&gt;
Fixes: 1d807fc720bd ("passt: Introduce ICMP echo proxy")
[sbrivio: commit message]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Original patch and report by Stuart Thomas, commit message rewritten
for clarity, with added details, after further investigation.

Stuart reports that, even though the data length of ICMP and ICMPv6
echo requests we forward from the guest is limited by the maximum
guest MTU (see also https://bugs.passt.top/show_bug.cgi?id=55), and
even though RFC 792 mandates that the echo reply returns the original
data as received in the request, it's actually possible, at least
using local sockets, to send back a (reassembled) reply that's bigger
than the original request.

To cover that case, we need to clamp the size of the replies we relay
via icmp_sock_handler(), because, otherwise, tap_icmp4_send() and
tap_icmp6_send() could try to exceed the available buffer by 34 bytes
for IPv4 (ETH_HLEN plus IP header) or 54 bytes for IPv6 (ETH_HLEN plus
IPv6 header).  This is actually prevented by __memcpy_chk() to a
known size object, which leads to a reliable abort, and, even if
somebody happens to disable FORTIFY_SOURCE guards in their builds,
this would hit the stack protector, resulting again in termination.

Regardless of this, it's probably wiser to discard the reply and
continue, as this condition is unlikely to indicate a situation where
we can't proceed with regular functionality and a restart would help
to recover from.

Only the guest can trigger this condition by sending a request to a
particular peer, set up to reply with an invalid message, with the
sole outcome of sabotaging its own connectivity (which can anyway be
done in more direct ways), so this is a robustness issue rather than
a security problem.

As alternative fixes, we considered:

- truncating the reply, but this wouldn't really fit our network
  transparency goals, and on top of that we would need to recalculate
  the checksum, which would mean substantially modifying ICMP messages
  even further

- dropping any reply that exceeds (with headers) the link MTU, instead
  of letting the guest eventually do that.  This would be more correct
  in some sense, but also less transparent, and would make things
  harder to debug in case any problem in this sense is suspected

Simply drop the oversized reply instead.  As Stuart already noted, we
are not able to forward them (intact) anyway.

We would like to thank Stuart Thomas for the detailed investigation,
for the comprehensive report, for the patch, and for sharing his
results in a clear, honest way.

Reported-by: Stuart Thomas &lt;Stuart.Thomas@triageforge.co.uk&gt;
Signed-off-by: Stuart Thomas &lt;Stuart.Thomas@triageforge.co.uk&gt;
Fixes: 1d807fc720bd ("passt: Introduce ICMP echo proxy")
[sbrivio: commit message]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>flow, treewide: Promote priority of selected flow-linked messages</title>
<updated>2026-06-22T07:13:46+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2026-06-19T15:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=74863b01d304beda59d7a7bc9cfa887683fedd95'/>
<id>74863b01d304beda59d7a7bc9cfa887683fedd95</id>
<content type='text'>
Most of out flow specific log messages are debug level for fear of flooding
the logs, even when they report real error conditions that might be off
significance.

Now that we have the mechanisms for log message rate limiting, we can do
better.  Promote many flow related messages to warning or error level, with
rate limiting.  While we're there add ratelimiting to a handful of existing
warning or error level messages.

They general heuristic is to promote messages that report a failure which
is not something that should be triggered by the guest doing something
weird.  This mostly means failures from socket operations we expect to be
legitimate.

Adding the ratelimiting means plumbing the 'now' timestamp through much
more of the code, hence the large churn.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most of out flow specific log messages are debug level for fear of flooding
the logs, even when they report real error conditions that might be off
significance.

Now that we have the mechanisms for log message rate limiting, we can do
better.  Promote many flow related messages to warning or error level, with
rate limiting.  While we're there add ratelimiting to a handful of existing
warning or error level messages.

They general heuristic is to promote messages that report a failure which
is not something that should be triggered by the guest doing something
weird.  This mostly means failures from socket operations we expect to be
legitimate.

Adding the ratelimiting means plumbing the 'now' timestamp through much
more of the code, hence the large churn.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: Spell ASSERT() as assert()</title>
<updated>2026-03-20T20:05:29+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2026-03-19T06:11:43+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=bc872d91765dfd6ff34b0e9a34bce410fac1cef3'/>
<id>bc872d91765dfd6ff34b0e9a34bce410fac1cef3</id>
<content type='text'>
The standard library assert(3), at least with glibc, hits our seccomp
filter and dies with SIGSYS before it's able to print a message, making it
near useless.  Therefore, since 7a8ed9459dfe ("Make assertions actually
useful") we've instead used our own implementation, named ASSERT().

This makes our code look slightly odd though - ASSERT() has the same
overall effect as assert(), it's just a different implementation.  More
importantly this makes it awkward to share code between passt/pasta proper
and things that compile in a more typical environment.  We're going to want
that for our upcoming dynamic configuration tool.

Address this by overriding the standard library's assert() implementation
with our own, instead of giving ours its own name.

The standard assert() is supposed to be omitted if NDEBUG is defined,
which ours doesn't do.  Implement that as well, so ours doesn't
unexpectedly differ.  For the -DNDEBUG case we do this by *not* overriding
assert(), since it will be a no-op anyway.  This requires a few places to
add a #include &lt;assert.h&gt; to let us compile (albeit with warnings) when
-DNDEBUG.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
[sbrivio: Fix some conflicts and missing conversions as a result of
 applying "vu_common: Move iovec management into vu_collect()" first]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The standard library assert(3), at least with glibc, hits our seccomp
filter and dies with SIGSYS before it's able to print a message, making it
near useless.  Therefore, since 7a8ed9459dfe ("Make assertions actually
useful") we've instead used our own implementation, named ASSERT().

This makes our code look slightly odd though - ASSERT() has the same
overall effect as assert(), it's just a different implementation.  More
importantly this makes it awkward to share code between passt/pasta proper
and things that compile in a more typical environment.  We're going to want
that for our upcoming dynamic configuration tool.

Address this by overriding the standard library's assert() implementation
with our own, instead of giving ours its own name.

The standard assert() is supposed to be omitted if NDEBUG is defined,
which ours doesn't do.  Implement that as well, so ours doesn't
unexpectedly differ.  For the -DNDEBUG case we do this by *not* overriding
assert(), since it will be a no-op anyway.  This requires a few places to
add a #include &lt;assert.h&gt; to let us compile (albeit with warnings) when
-DNDEBUG.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
[sbrivio: Fix some conflicts and missing conversions as a result of
 applying "vu_common: Move iovec management into vu_collect()" first]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>flow: Remove EPOLLFD_ID_INVALID</title>
<updated>2026-01-20T18:37:53+00:00</updated>
<author>
<name>Laurent Vivier</name>
<email>lvivier@redhat.com</email>
</author>
<published>2026-01-19T16:19:15+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=386b5f5472b89769c025f5d5056348532a823b93'/>
<id>386b5f5472b89769c025f5d5056348532a823b93</id>
<content type='text'>
As all flows are now registered with an epollid at creation, we no
longer need to test if a flow is in epoll.  Remove all related code
including flow_in_epoll() and flow_epollid_clear().

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As all flows are now registered with an epollid at creation, we no
longer need to test if a flow is in epoll.  Remove all related code
including flow_in_epoll() and flow_epollid_clear().

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>flow, fwd: Optimise forwarding rule lookup using epoll ref when possible</title>
<updated>2026-01-18T11:48:09+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2026-01-16T00:59:26+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=4a0d507296ef8c1349669e95fd672539734d9a6c'/>
<id>4a0d507296ef8c1349669e95fd672539734d9a6c</id>
<content type='text'>
Now that listening sockets include a reference to the forwarding rule
which created them we can, in many cases, avoid a linear search of the
forwarding table when we want to find the relevant rule.  Instead we
can take the rule index from the socket's epoll reference, and use
that to immediately find the correct rule.

This is conceptually simple, but requires a moderate amount of
plumbing to get the index from the reference through to the rule
lookup.  We still allow fall back to linear search if we don't have
the index, and this may (rarely) be used in the udp_flush_flow() case,
where we could get packets for one flow on a different flow's socket,
rather than through a listening socket as usual.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that listening sockets include a reference to the forwarding rule
which created them we can, in many cases, avoid a linear search of the
forwarding table when we want to find the relevant rule.  Instead we
can take the rule index from the socket's epoll reference, and use
that to immediately find the correct rule.

This is conceptually simple, but requires a moderate amount of
plumbing to get the index from the reference through to the rule
lookup.  We still allow fall back to linear search if we don't have
the index, and this may (rarely) be used in the udp_flush_flow() case,
where we could get packets for one flow on a different flow's socket,
rather than through a listening socket as usual.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>flow: Introduce flow_epoll_set() to centralize epoll operations</title>
<updated>2026-01-14T00:07:51+00:00</updated>
<author>
<name>Laurent Vivier</name>
<email>lvivier@redhat.com</email>
</author>
<published>2026-01-09T16:54:38+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=c0be730f2aa2243a132b3ee40c2bf05ebc84fedf'/>
<id>c0be730f2aa2243a132b3ee40c2bf05ebc84fedf</id>
<content type='text'>
Currently, each flow type (TCP, TCP_SPLICE, PING, UDP) has its own
code to add or modify file descriptors in epoll. This leads to
duplicated boilerplate code across icmp.c, tcp.c, tcp_splice.c, and
udp_flow.c, each setting up epoll_ref unions and calling epoll_ctl()
with flow-type-specific details.

Introduce flow_epoll_set() in flow.c to handle epoll operations for
all flow types in a unified way.

This will be needed to migrate queue pair from an epollfd to another.

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, each flow type (TCP, TCP_SPLICE, PING, UDP) has its own
code to add or modify file descriptors in epoll. This leads to
duplicated boilerplate code across icmp.c, tcp.c, tcp_splice.c, and
udp_flow.c, each setting up epoll_ref unions and calling epoll_ctl()
with flow-type-specific details.

Introduce flow_epoll_set() in flow.c to handle epoll operations for
all flow types in a unified way.

This will be needed to migrate queue pair from an epollfd to another.

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>inany: Let length of sockaddr_inany be implicit from the family</title>
<updated>2025-12-02T22:07:14+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2025-12-02T04:02:05+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=b0523f6b0629358024e95b5d01dc81512cfa8e10'/>
<id>b0523f6b0629358024e95b5d01dc81512cfa8e10</id>
<content type='text'>
sockaddr_inany can contain either an IPv4 or IPv6 socket address, so the
relevant length for bind() or connect() can vary.  In pif_sockaddr() we
return that length, and in sock_l4_sa() we take it as an extra parameter.

However, sockaddr_inany always contains exactly a sockaddr_in or a
sockaddr_in6 each with a fixed size.  Therefore we can derive the relevant
length from the family, and don't need to pass it around separately.

Make a tiny helper to get the relevant address length, and update all
interfaces to use that approach instead.

In the process, fix a buglet in tcp_flow_repair_bind(): we passed
sizeof(union sockaddr_inany) to bind() instead of the specific length for
the address family.  Since the sizeof() is always longer than the specific
length, this is probably fine, but not theoretically correct.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sockaddr_inany can contain either an IPv4 or IPv6 socket address, so the
relevant length for bind() or connect() can vary.  In pif_sockaddr() we
return that length, and in sock_l4_sa() we take it as an extra parameter.

However, sockaddr_inany always contains exactly a sockaddr_in or a
sockaddr_in6 each with a fixed size.  Therefore we can derive the relevant
length from the family, and don't need to pass it around separately.

Make a tiny helper to get the relevant address length, and update all
interfaces to use that approach instead.

In the process, fix a buglet in tcp_flow_repair_bind(): we passed
sizeof(union sockaddr_inany) to bind() instead of the specific length for
the address family.  Since the sizeof() is always longer than the specific
length, this is probably fine, but not theoretically correct.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>icmp: Use epoll instance management for ICMP flows</title>
<updated>2025-10-30T14:33:03+00:00</updated>
<author>
<name>Laurent Vivier</name>
<email>lvivier@redhat.com</email>
</author>
<published>2025-10-21T21:01:14+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=ca931248dc32bf284a2dee095d983621ab4bec7f'/>
<id>ca931248dc32bf284a2dee095d983621ab4bec7f</id>
<content type='text'>
Store the epoll id in the flow_common structure for ICMP ping flows
using flow_epollid_set() and retrieve the corresponding epoll
file descriptor with flow_epollfd() instead of passing c-&gt;epollfd
directly. This makes ICMP consistent with the recent TCP changes and
follows the pattern established in previous commit.

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Store the epoll id in the flow_common structure for ICMP ping flows
using flow_epollid_set() and retrieve the corresponding epoll
file descriptor with flow_epollfd() instead of passing c-&gt;epollfd
directly. This makes ICMP consistent with the recent TCP changes and
follows the pattern established in previous commit.

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
