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
411 int code = icmp_param->data.icmph.code; in icmp_reply() local
420 if (!icmpv4_global_allow(net, type, code, &apply_ratelimit)) in icmp_reply()
452 if (icmpv4_xrlim_allow(net, rt, &fl4, type, code, apply_ratelimit)) in icmp_reply()
482 int code, struct icmp_bxm *param) in icmp_route_lookup() argument
499 fl4->fl4_icmp_code = code; in icmp_route_lookup()
592 void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, in __icmp_send() argument
691 !icmpv4_global_allow(net, type, code, &apply_ratelimit)) in __icmp_send()
733 icmp_param.data.icmph.code = code; in __icmp_send()
745 inet_dsfield_to_dscp(tos), mark, type, code, in __icmp_send()
751 if (!icmpv4_xrlim_allow(net, rt, &fl4, type, code, apply_ratelimit)) in __icmp_send()
779 trace_icmp_send(skb_in, type, code); in __icmp_send()
795 void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) in icmp_ndo_send() argument
805 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
820 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
893 switch (icmph->code & 15) { in icmp_unreach()
926 if (icmph->code > NR_ICMP_UNREACH) in icmp_unreach()
934 if (icmph->code == ICMP_EXC_FRAGTIME) in icmp_unreach()
961 icmph->type, icmph->code, in icmp_unreach()
1126 icmphdr->code = ICMP_EXT_CODE_NO_IF; in icmp_build_probe()
1145 icmphdr->code = ICMP_EXT_CODE_MAL_QUERY; in icmp_build_probe()
1176 icmp_param.data.icmph.code = 0; in icmp_timestamp()
1378 int code = icmp_hdr(skb)->code; in icmp_err() local
1389 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) in icmp_err()