| /net/netfilter/ |
| A D | xt_tcpudp.c | 169 u8 type, u8 code) in type_code_in_range() argument 171 return type == test_type && code >= min_code && code <= max_code; in type_code_in_range() 175 u8 type, u8 code, bool invert) in icmp_type_code_match() argument 178 type_code_in_range(test_type, min_code, max_code, type, code)) in icmp_type_code_match() 183 u8 type, u8 code, bool invert) in icmp6_type_code_match() argument 185 return type_code_in_range(test_type, min_code, max_code, type, code) ^ invert; in icmp6_type_code_match() 209 icmpinfo->code[0], in icmp_match() 210 icmpinfo->code[1], in icmp_match() 211 ic->type, ic->code, in icmp_match() 236 icmpinfo->code[0], in icmp6_match() [all …]
|
| A D | nft_reject.c | 103 int nft_reject_icmp_code(u8 code) in nft_reject_icmp_code() argument 105 if (WARN_ON_ONCE(code > NFT_REJECT_ICMPX_MAX)) in nft_reject_icmp_code() 108 return icmp_code_v4[code]; in nft_reject_icmp_code() 121 int nft_reject_icmpv6_code(u8 code) in nft_reject_icmpv6_code() argument 123 if (WARN_ON_ONCE(code > NFT_REJECT_ICMPX_MAX)) in nft_reject_icmpv6_code() 126 return icmp_code_v6[code]; in nft_reject_icmpv6_code()
|
| A D | nft_synproxy.c | 61 regs->verdict.code = NF_STOLEN; in nft_synproxy_eval_v4() 67 regs->verdict.code = NF_STOLEN; in nft_synproxy_eval_v4() 69 regs->verdict.code = NF_DROP; in nft_synproxy_eval_v4() 92 regs->verdict.code = NF_STOLEN; in nft_synproxy_eval_v6() 98 regs->verdict.code = NF_STOLEN; in nft_synproxy_eval_v6() 100 regs->verdict.code = NF_DROP; in nft_synproxy_eval_v6() 117 regs->verdict.code = NFT_BREAK; in nft_synproxy_do_eval() 122 regs->verdict.code = NF_DROP; in nft_synproxy_do_eval() 130 regs->verdict.code = NF_DROP; in nft_synproxy_do_eval() 135 regs->verdict.code = NF_DROP; in nft_synproxy_do_eval() [all …]
|
| A D | nf_tables_core.c | 91 regs->verdict.code = NFT_BREAK; in nft_cmp_fast_eval() 105 regs->verdict.code = NFT_BREAK; in nft_cmp16_fast_eval() 115 switch (regs->verdict.code & NF_VERDICT_MASK) { in __nft_trace_verdict() 274 regs.verdict.code = NFT_CONTINUE; in nft_do_chain() 287 if (regs.verdict.code != NFT_CONTINUE) in nft_do_chain() 291 switch (regs.verdict.code) { in nft_do_chain() 293 regs.verdict.code = NFT_CONTINUE; in nft_do_chain() 306 switch (regs.verdict.code & NF_VERDICT_MASK) { in nft_do_chain() 310 return regs.verdict.code; in nft_do_chain() 315 switch (regs.verdict.code) { in nft_do_chain()
|
| A D | nft_reject_netdev.c | 44 int hook, u8 code) in nft_reject_netdev_send_v4_unreach() argument 48 nskb = nf_reject_skb_v4_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v4_unreach() 73 int hook, u8 code) in nft_reject_netdev_send_v6_unreach() argument 77 nskb = nf_reject_skb_v6_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v6_unreach() 144 regs->verdict.code = NF_DROP; in nft_reject_netdev_eval()
|
| A D | nft_tproxy.c | 35 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval_v4() 41 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval_v4() 80 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval_v4() 102 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval_v6() 109 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval_v6() 153 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval_v6() 182 regs->verdict.code = NFT_BREAK; in nft_tproxy_eval()
|
| A D | nf_conntrack_sip.c | 1144 if ((code >= 100 && code <= 199) || in process_invite_response() 1145 (code >= 200 && code <= 299)) in process_invite_response() 1161 if ((code >= 100 && code <= 199) || in process_update_response() 1162 (code >= 200 && code <= 299)) in process_update_response() 1178 if ((code >= 100 && code <= 199) || in process_prack_response() 1179 (code >= 200 && code <= 299)) in process_prack_response() 1349 if (code >= 100 && code <= 199) in process_register_response() 1351 if (code < 200 || code > 299) in process_register_response() 1415 unsigned int code, cseq, i; in process_sip_response() local 1420 if (!code) { in process_sip_response() [all …]
|
| A D | nft_socket.c | 34 regs->verdict.code = NFT_BREAK; in nft_socket_wildcard() 123 regs->verdict.code = NFT_BREAK; in nft_socket_eval() 135 regs->verdict.code = NFT_BREAK; in nft_socket_eval() 141 regs->verdict.code = NFT_BREAK; in nft_socket_eval() 149 regs->verdict.code = NFT_BREAK; in nft_socket_eval() 156 regs->verdict.code = NFT_BREAK; in nft_socket_eval()
|
| A D | nf_conntrack_proto_icmp.c | 39 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple() 65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple() 260 nla_put_u8(skb, CTA_PROTO_ICMP_CODE, t->dst.u.icmp.code)) in icmp_tuple_to_nlattr() 292 tuple->dst.u.icmp.code = nla_get_u8(tb[CTA_PROTO_ICMP_CODE]); in icmp_nlattr_to_tuple()
|
| A D | nft_immediate.c | 76 switch (priv->data.verdict.code) { in nft_immediate_init() 105 switch (data->verdict.code) { in nft_immediate_activate() 151 switch (data->verdict.code) { in nft_immediate_deactivate() 198 switch (data->verdict.code) { in nft_immediate_destroy() 259 switch (data->verdict.code) { in nft_immediate_validate() 285 switch (data->verdict.code) { in nft_immediate_offload_verdict()
|
| A D | nft_xfrm.c | 128 regs->verdict.code = NFT_BREAK; in nft_xfrm_state_get_key() 157 regs->verdict.code = NFT_BREAK; in nft_xfrm_state_get_key() 168 regs->verdict.code = NFT_BREAK; in nft_xfrm_get_eval_in() 192 regs->verdict.code = NFT_BREAK; in nft_xfrm_get_eval_out() 210 regs->verdict.code = NFT_BREAK; in nft_xfrm_get_eval()
|
| A D | nf_conntrack_proto_icmpv6.c | 44 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple() 79 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple() 237 nla_put_u8(skb, CTA_PROTO_ICMPV6_CODE, t->dst.u.icmp.code)) in icmpv6_tuple_to_nlattr() 270 tuple->dst.u.icmp.code = nla_get_u8(tb[CTA_PROTO_ICMPV6_CODE]); in icmpv6_nlattr_to_tuple()
|
| A D | nft_compat.c | 92 regs->verdict.code = NFT_CONTINUE; in nft_target_eval_xt() 95 regs->verdict.code = ret; in nft_target_eval_xt() 119 regs->verdict.code = NF_ACCEPT; in nft_target_eval_bridge() 122 regs->verdict.code = NF_DROP; in nft_target_eval_bridge() 125 regs->verdict.code = NFT_CONTINUE; in nft_target_eval_bridge() 128 regs->verdict.code = NFT_RETURN; in nft_target_eval_bridge() 131 regs->verdict.code = ret; in nft_target_eval_bridge() 406 regs->verdict.code = NF_DROP; in __nft_match_eval() 412 regs->verdict.code = NFT_CONTINUE; in __nft_match_eval() 415 regs->verdict.code = NFT_BREAK; in __nft_match_eval()
|
| /net/ipv4/ |
| A D | icmp.c | 293 if (icmpv4_mask_allow(net, type, code)) in icmpv4_global_allow() 413 int code = icmp_param->data.icmph.code; in icmp_reply() local 484 int code, struct icmp_bxm *param) in icmp_route_lookup() argument 501 fl4->fl4_icmp_code = code; in icmp_route_lookup() 735 icmp_param.data.icmph.code = code; in __icmp_send() 781 trace_icmp_send(skb_in, type, code); in __icmp_send() 895 switch (icmph->code & 15) { in icmp_unreach() 928 if (icmph->code > NR_ICMP_UNREACH) in icmp_unreach() 963 icmph->type, icmph->code, in icmp_unreach() 1178 icmp_param.data.icmph.code = 0; in icmp_timestamp() [all …]
|
| A D | ping.c | 495 int code; in ping_err() local 504 code = icmp_hdr(skb)->code; in ping_err() 509 code = icmp6_hdr(skb)->icmp6_code; in ping_err() 562 if (code <= NR_ICMP_UNREACH) { in ping_err() 563 harderr = icmp_err_convert[code].fatal; in ping_err() 564 err = icmp_err_convert[code].errno; in ping_err() 653 u8 type, code; in ping_common_sendmsg() local 679 code = ((struct icmphdr *) user_icmph)->code; in ping_common_sendmsg() 689 if (!ping_supported(family, type, code)) in ping_common_sendmsg() 787 fl4.fl4_icmp_code = user_icmph.code; in ping_v4_sendmsg() [all …]
|
| /net/sched/ |
| A D | Kconfig | 23 This code is considered to be experimental. 59 To compile this code as a module, choose M here: the 68 To compile this code as a module, choose M here: the 77 To compile this code as a module, choose M here: the 86 To compile this code as a module, choose M here: the 97 To compile this code as a module, choose M here: the 108 To compile this code as a module, choose M here: the 119 To compile this code as a module, choose M here: the 131 To compile this code as a module, choose M here: the 142 To compile this code as a module, choose M here: the [all …]
|
| /net/ipv6/ |
| A D | ip6_icmp.c | 36 void __icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, in __icmpv6_send() argument 44 send(skb, type, code, info, NULL, parm); in __icmpv6_send() 52 void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u32 info) in icmpv6_ndo_send() argument 62 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send() 77 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send()
|
| A D | fou6.c | 76 u8 type, u8 code, int offset, __be32 info) in gue6_err_proto_handler() argument 82 if (!ipprot->err_handler(skb, opt, type, code, offset, info)) in gue6_err_proto_handler() 90 u8 type, u8 code, int offset, __be32 info) in gue6_err() argument 113 type, code, offset, info); in gue6_err() 117 type, code, offset, info); in gue6_err() 150 opt, type, code, offset, info); in gue6_err()
|
| A D | tunnel6.c | 204 u8 type, u8 code, int offset, __be32 info) in tunnel6_err() argument 209 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnel6_err() 216 u8 type, u8 code, int offset, __be32 info) in tunnel46_err() argument 221 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnel46_err() 228 u8 type, u8 code, int offset, __be32 info) in tunnelmpls6_err() argument 233 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnelmpls6_err()
|
| A D | xfrm6_protocol.c | 127 u8 type, u8 code, int offset, __be32 info) in xfrm6_esp_err() argument 132 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_esp_err() 156 u8 type, u8 code, int offset, __be32 info) in xfrm6_ah_err() argument 161 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_ah_err() 185 u8 type, u8 code, int offset, __be32 info) in xfrm6_ipcomp_err() argument 190 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_ipcomp_err()
|
| A D | icmp.c | 75 u8 type, u8 code, int offset, __be32 info) in icmpv6_err() argument 502 code == ICMPV6_UNK_OPTION && in icmp6_send() 582 fl6.fl6_icmp_code = code; in icmp6_send() 593 tmp_hdr.icmp6_code = code; in icmp6_send() 654 icmp6_send(skb, ICMPV6_PARAMPROB, code, pos, NULL, IP6CB(skb)); in icmpv6_param_prob_reason() 838 u8 code, __be32 info) in icmpv6_notify() argument 883 raw6_icmp_error(skb, nexthdr, type, code, inner_offset, info); in icmpv6_notify() 1141 int icmpv6_err_convert(u8 type, u8 code, int *err) in icmpv6_err_convert() argument 1150 if (code < ARRAY_SIZE(tab_unreach)) { in icmpv6_err_convert() 1151 *err = tab_unreach[code].err; in icmpv6_err_convert() [all …]
|
| /net/bridge/netfilter/ |
| A D | nft_reject_bridge.c | 64 int hook, u8 code) in nft_reject_br_send_v4_unreach() argument 68 nskb = nf_reject_skb_v4_unreach(net, oldskb, NULL, hook, code); in nft_reject_br_send_v4_unreach() 97 int hook, u8 code) in nft_reject_br_send_v6_unreach() argument 101 nskb = nf_reject_skb_v6_unreach(net, oldskb, NULL, hook, code); in nft_reject_br_send_v6_unreach() 169 regs->verdict.code = NF_DROP; in nft_reject_bridge_eval()
|
| /net/ipv4/netfilter/ |
| A D | nf_reject_ipv4.c | 77 int hook, u8 code) in nf_reject_skb_v4_unreach() argument 125 icmph->code = code; in nf_reject_skb_v4_unreach() 315 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument 330 icmp_send(skb_in, ICMP_DEST_UNREACH, code, 0); in nf_send_unreach() 335 icmp_send(skb_in, ICMP_DEST_UNREACH, code, 0); in nf_send_unreach()
|
| /net/nfc/nci/ |
| A D | lib.c | 24 int nci_to_errno(__u8 code) in nci_to_errno() argument 26 switch (code) { in nci_to_errno()
|
| /net/sctp/ |
| A D | input.c | 549 __u8 type, __u8 code, __u32 info) in sctp_v4_err_handle() argument 560 if (code > NR_ICMP_UNREACH) in sctp_v4_err_handle() 562 if (code == ICMP_FRAG_NEEDED) { in sctp_v4_err_handle() 566 if (code == ICMP_PROT_UNREACH) { in sctp_v4_err_handle() 570 err = icmp_err_convert[code].errno; in sctp_v4_err_handle() 573 if (code == ICMP_EXC_FRAGTIME) in sctp_v4_err_handle() 611 const int code = icmp_hdr(skb)->code; in sctp_v4_err() local 632 sctp_v4_err_handle(transport, skb, type, code, info); in sctp_v4_err() 660 if (hdr->type == ICMP_DEST_UNREACH && hdr->code == ICMP_FRAG_NEEDED) in sctp_udp_v4_err() 662 sctp_v4_err_handle(t, skb, hdr->type, hdr->code, info); in sctp_udp_v4_err()
|