hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/linux/icmpv6.h
....@@ -90,4 +90,18 @@
9090 const struct in6_addr *saddr,
9191 const struct in6_addr *daddr,
9292 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
+
93107 #endif