diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-01-16 16:16:08 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-01-22 23:36:32 +0100 |
commit | 5dffb998925376440aa09ac48523b86fa96381ee (patch) | |
tree | 12025e193032e670b64c80784fd1dada2a3fb5b1 /udp.h | |
parent | 8981a720aac4ab22beb3375cd77062a8aed693e6 (diff) | |
download | passt-5dffb998925376440aa09ac48523b86fa96381ee.tar passt-5dffb998925376440aa09ac48523b86fa96381ee.tar.gz passt-5dffb998925376440aa09ac48523b86fa96381ee.tar.bz2 passt-5dffb998925376440aa09ac48523b86fa96381ee.tar.lz passt-5dffb998925376440aa09ac48523b86fa96381ee.tar.xz passt-5dffb998925376440aa09ac48523b86fa96381ee.tar.zst passt-5dffb998925376440aa09ac48523b86fa96381ee.zip |
icmp: Don't set "port" on destination sockaddr for ping sockets
We set the port to the ICMP id on the sendto() address when using ICMP
ping sockets. However, this has no effect: the ICMP id the kernel
uses is determined only by the "port" on the socket's *bound* address
(which is constructed inside sock_l4(), using the id we also pass to
it).
For unclear reasons this change triggers cppcheck 2.13.0 to give new
"variable could be const pointer" warnings, so make *ih const as well to
fix that.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.h')
0 files changed, 0 insertions, 0 deletions