diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-01-16 16:16:17 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-01-22 23:36:55 +0100 |
commit | b6a4e20aa69a855ab2ce04a2eb302416730a21af (patch) | |
tree | d01962315fa924591e7cbcd24c43f3259d7add41 /udp.h | |
parent | 6e86511f596794f987ca1114d5681e85f91eaed3 (diff) | |
download | passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.tar passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.tar.gz passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.tar.bz2 passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.tar.lz passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.tar.xz passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.tar.zst passt-b6a4e20aa69a855ab2ce04a2eb302416730a21af.zip |
icmp: Validate packets received on ping sockets
We access fields of packets received from ping sockets assuming they're
echo replies, without actually checking that. Of course, we don't expect
anything else from the kernel, but it's probably best to verify.
While we're at it, also check for short packets, or a receive address of
the wrong family.
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