Lines Matching refs:code
63 uint8_t icmp_to_icmp6_type(uint8_t type, uint8_t code) {
76 if (code != ICMP_UNREACH_PROTOCOL && code != ICMP_UNREACH_NEEDFRAG) {
89 * code - the ICMP code
91 uint8_t icmp_to_icmp6_code(uint8_t type, uint8_t code) {
98 return code;
101 switch (code) {
115 // Otherwise, we don't understand this ICMP type/code combination. Fall through.
118 logmsg_dbg(ANDROID_LOG_DEBUG, "icmp_to_icmp6_code: unhandled ICMP type/code %d/%d", type, code);
126 uint8_t icmp6_to_icmp_type(uint8_t type, uint8_t code) {
142 logmsg_dbg(ANDROID_LOG_DEBUG, "icmp6_to_icmp_type: unhandled ICMP type/code %d/%d", type, code);
149 * code - the ICMPv6 code
151 uint8_t icmp6_to_icmp_code(uint8_t type, uint8_t code) {
156 return code;
159 switch (code) {
175 // Otherwise, we don't understand this ICMPv6 type/code combination. Fall through.
179 logmsg_dbg(ANDROID_LOG_DEBUG, "icmp6_to_icmp_code: unhandled ICMP type/code %d/%d", type, code);