Lines Matching defs:code
21 * code.
283 static bool icmpv4_mask_allow(struct net *net, int type, int code)
289 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED)
299 static bool icmpv4_global_allow(struct net *net, int type, int code)
301 if (icmpv4_mask_allow(net, type, code))
315 struct flowi4 *fl4, int type, int code)
322 if (icmpv4_mask_allow(net, type, code))
414 int code = icmp_param->data.icmph.code;
423 if (!icmpv4_global_allow(net, type, code))
456 if (icmpv4_xrlim_allow(net, rt, &fl4, type, code))
487 int type, int code,
504 fl4->fl4_icmp_code = code;
593 void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info,
689 !icmpv4_global_allow(net, type, code))
731 icmp_param.data.icmph.code = code;
743 type, code, &icmp_param);
748 if (!icmpv4_xrlim_allow(net, rt, &fl4, type, code))
789 void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info)
799 __icmp_send(skb_in, type, code, info, &opts);
814 __icmp_send(skb_in, type, code, info, &opts);
884 switch (icmph->code & 15) {
917 if (icmph->code > NR_ICMP_UNREACH)
925 if (icmph->code == ICMP_EXC_FRAGTIME)
950 net_warn_ratelimited("%pI4 sent an invalid ICMP type %u, code %u error to a broadcast: %pI4 on %s\n",
952 icmph->type, icmph->code,
1045 icmp_param.data.icmph.code = 0;
1221 int code = icmp_hdr(skb)->code;
1233 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED)