kernel/include/linux/icmpv6.h
.. .. @@ -90,4 +90,18 @@ 90 90 const struct in6_addr *saddr, 91 91 const struct in6_addr *daddr, 92 92 int oif); 93 +94 +static inline bool icmpv6_is_err(int type)95 +{96 + switch (type) {97 + case ICMPV6_DEST_UNREACH:98 + case ICMPV6_PKT_TOOBIG:99 + case ICMPV6_TIME_EXCEED:100 + case ICMPV6_PARAMPROB:101 + return true;102 + }103 +104 + return false;105 +}106 +93 107 #endif