hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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