summaryrefslogtreecommitdiff
path: root/net/ipv6/icmp.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-02-10 18:47:06 +0000
committerJakub Kicinski <kuba@kernel.org>2023-02-13 19:55:32 -0800
commit1fb2d41501f38192d8a19da585cd441cf8845697 (patch)
tree81c97b4bcf20c5689ebfc82c53d382bcdf8f3b25 /net/ipv6/icmp.c
parentdc68eaf2c29f410fb078fd6da8e56201d3282e0b (diff)
net: add pskb_may_pull_reason() helper
pskb_may_pull() can fail for two different reasons. Provide pskb_may_pull_reason() helper to distinguish between these reasons. It returns: SKB_NOT_DROPPED_YET : Success SKB_DROP_REASON_PKT_TOO_SMALL : packet too small SKB_DROP_REASON_NOMEM : skb->head could not be resized Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/icmp.c')
0 files changed, 0 insertions, 0 deletions