hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
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