]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/icmpv6.h
Merge tag 'trace-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux...
[linux.git] / include / linux / icmpv6.h
index a8f888976137820e9b6a94a5d6bf37619073d19a..ef1cbb5f454f7aa105db534ecc1ddbb56df333ce 100644 (file)
@@ -46,4 +46,18 @@ extern void                          icmpv6_flow_init(struct sock *sk,
                                                         const struct in6_addr *saddr,
                                                         const struct in6_addr *daddr,
                                                         int oif);
+
+static inline bool icmpv6_is_err(int type)
+{
+       switch (type) {
+       case ICMPV6_DEST_UNREACH:
+       case ICMPV6_PKT_TOOBIG:
+       case ICMPV6_TIME_EXCEED:
+       case ICMPV6_PARAMPROB:
+               return true;
+       }
+
+       return false;
+}
+
 #endif