Lines Matching refs:code
274 static bool icmpv4_mask_allow(struct net *net, int type, int code) in icmpv4_mask_allow() argument
280 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) in icmpv4_mask_allow()
290 static bool icmpv4_global_allow(struct net *net, int type, int code, in icmpv4_global_allow() argument
293 if (icmpv4_mask_allow(net, type, code)) in icmpv4_global_allow()
309 struct flowi4 *fl4, int type, int code, in icmpv4_xrlim_allow() argument
413 int code = icmp_param->data.icmph.code; in icmp_reply() local
422 if (!icmpv4_global_allow(net, type, code, &apply_ratelimit)) in icmp_reply()
454 if (icmpv4_xrlim_allow(net, rt, &fl4, type, code, apply_ratelimit)) in icmp_reply()
484 int code, struct icmp_bxm *param) in icmp_route_lookup() argument
501 fl4->fl4_icmp_code = code; in icmp_route_lookup()
594 void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, in __icmp_send() argument
693 !icmpv4_global_allow(net, type, code, &apply_ratelimit)) in __icmp_send()
735 icmp_param.data.icmph.code = code; in __icmp_send()
747 inet_dsfield_to_dscp(tos), mark, type, code, in __icmp_send()
753 if (!icmpv4_xrlim_allow(net, rt, &fl4, type, code, apply_ratelimit)) in __icmp_send()
781 trace_icmp_send(skb_in, type, code); in __icmp_send()
797 void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) in icmp_ndo_send() argument
807 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
822 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
895 switch (icmph->code & 15) { in icmp_unreach()
928 if (icmph->code > NR_ICMP_UNREACH) in icmp_unreach()
936 if (icmph->code == ICMP_EXC_FRAGTIME) in icmp_unreach()
963 icmph->type, icmph->code, in icmp_unreach()
1128 icmphdr->code = ICMP_EXT_CODE_NO_IF; in icmp_build_probe()
1147 icmphdr->code = ICMP_EXT_CODE_MAL_QUERY; in icmp_build_probe()
1178 icmp_param.data.icmph.code = 0; in icmp_timestamp()
1380 int code = icmp_hdr(skb)->code; in icmp_err() local
1391 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) in icmp_err()