Lines Matching refs:code
21 * code.
275 static bool icmpv4_mask_allow(struct net *net, int type, int code)
281 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED)
291 static bool icmpv4_global_allow(struct net *net, int type, int code)
293 if (icmpv4_mask_allow(net, type, code))
308 struct flowi4 *fl4, int type, int code)
315 if (icmpv4_mask_allow(net, type, code))
408 int code = icmp_param->data.icmph.code;
417 if (!icmpv4_global_allow(net, type, code))
450 if (icmpv4_xrlim_allow(net, rt, &fl4, type, code))
481 int type, int code,
498 fl4->fl4_icmp_code = code;
587 void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info,
683 !icmpv4_global_allow(net, type, code))
725 icmp_param.data.icmph.code = code;
737 type, code, &icmp_param);
742 if (!icmpv4_xrlim_allow(net, rt, &fl4, type, code))
783 void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info)
793 __icmp_send(skb_in, type, code, info, &opts);
808 __icmp_send(skb_in, type, code, info, &opts);
881 switch (icmph->code & 15) {
914 if (icmph->code > NR_ICMP_UNREACH)
922 if (icmph->code == ICMP_EXC_FRAGTIME)
947 net_warn_ratelimited("%pI4 sent an invalid ICMP type %u, code %u error to a broadcast: %pI4 on %s\n",
949 icmph->type, icmph->code,
1112 icmphdr->code = ICMP_EXT_CODE_NO_IF;
1126 icmphdr->code = ICMP_EXT_CODE_MAL_QUERY;
1157 icmp_param.data.icmph.code = 0;
1226 * size NR_ICMP_TYPES + 1 (19 elements) and PROBE has code 42.
1357 int code = icmp_hdr(skb)->code;
1369 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED)