diff options
author | Matteo Croce <mcroce@redhat.com> | 2019-11-02 03:12:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 01:03:11 +0300 |
commit | 15122464d525f684a61806d28597050cdcef0f32 (patch) | |
tree | 756dfcf379828884fe9d13c62ff1048fb058516f /net | |
parent | b8fed591df6bf7a86a5f55a3d67a3a1a4d0fce73 (diff) | |
download | linux-15122464d525f684a61806d28597050cdcef0f32.tar.xz |
icmp: add helpers to recognize ICMP error packets
Add two helper functions, one for IPv4 and one for IPv6, to recognize
the ICMP packets which are error responses.
This packets are special because they have as payload the original
header of the packet which generated it (RFC 792 says at least 8 bytes,
but Linux actually includes much more than that).
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions