/net/netfilter/ |
D | nf_synproxy_core.c | 29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument 38 opts->options = 0; in synproxy_parse_options() 59 opts->mss = get_unaligned_be16(ptr); in synproxy_parse_options() 60 opts->options |= XT_SYNPROXY_OPT_MSS; in synproxy_parse_options() 65 opts->wscale = *ptr; in synproxy_parse_options() 66 if (opts->wscale > 14) in synproxy_parse_options() 67 opts->wscale = 14; in synproxy_parse_options() 68 opts->options |= XT_SYNPROXY_OPT_WSCALE; in synproxy_parse_options() 73 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options() 74 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options() [all …]
|
D | xt_osf.c | 207 unsigned char opts[MAX_IPOPTLEN]; in xt_osf_match_packet() local 230 sizeof(struct tcphdr), optsize, opts); in xt_osf_match_packet()
|
/net/ipv4/netfilter/ |
D | ipt_SYNPROXY.c | 72 const struct synproxy_options *opts) in synproxy_send_client_synack() argument 78 u16 mss = opts->mss; in synproxy_send_client_synack() 82 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack() 98 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack() 105 synproxy_build_options(nth, opts); in synproxy_send_client_synack() 114 const struct synproxy_options *opts, u32 recv_seq) in synproxy_send_server_syn() argument 123 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn() 142 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn() 149 synproxy_build_options(nth, opts); in synproxy_send_server_syn() 159 const struct synproxy_options *opts) in synproxy_send_server_ack() argument [all …]
|
/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 87 const struct synproxy_options *opts) in synproxy_send_client_synack() argument 93 u16 mss = opts->mss; in synproxy_send_client_synack() 97 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack() 113 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack() 120 synproxy_build_options(nth, opts); in synproxy_send_client_synack() 129 const struct synproxy_options *opts, u32 recv_seq) in synproxy_send_server_syn() argument 138 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn() 157 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn() 164 synproxy_build_options(nth, opts); in synproxy_send_server_syn() 174 const struct synproxy_options *opts) in synproxy_send_server_ack() argument [all …]
|
D | ip6t_hbh.c | 114 if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { in hbh_mt6() 116 (optinfo->opts[temp] & 0xFF00) >> 8); in hbh_mt6() 133 spec_len = optinfo->opts[temp] & 0x00FF; in hbh_mt6()
|
D | Kconfig | 140 tristate '"hbh" hop-by-hop and "dst" opts header match support'
|
/net/9p/ |
D | trans_rdma.c | 167 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument 174 opts->port = P9_PORT; in parse_opts() 175 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts() 176 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts() 177 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts() 206 opts->port = option; in parse_opts() 209 opts->sq_depth = option; in parse_opts() 212 opts->rq_depth = option; in parse_opts() 215 opts->timeout = option; in parse_opts() 222 opts->rq_depth = max(opts->rq_depth, opts->sq_depth); in parse_opts() [all …]
|
D | trans_fd.c | 727 static int parse_opts(char *params, struct p9_fd_opts *opts) in parse_opts() argument 734 opts->port = P9_PORT; in parse_opts() 735 opts->rfd = ~0; in parse_opts() 736 opts->wfd = ~0; in parse_opts() 765 opts->port = option; in parse_opts() 768 opts->rfd = option; in parse_opts() 771 opts->wfd = option; in parse_opts() 774 opts->privport = 1; in parse_opts() 929 struct p9_fd_opts opts; in p9_fd_create_tcp() local 931 err = parse_opts(args, &opts); in p9_fd_create_tcp() [all …]
|
D | client.c | 121 static int parse_opts(char *opts, struct p9_client *clnt) in parse_opts() argument 133 if (!opts) in parse_opts() 136 tmp_options = kstrdup(opts, GFP_KERNEL); in parse_opts()
|
/net/bluetooth/ |
D | l2cap_sock.c | 391 struct l2cap_options opts; in l2cap_sock_getsockopt_old() local 415 memset(&opts, 0, sizeof(opts)); in l2cap_sock_getsockopt_old() 416 opts.imtu = chan->imtu; in l2cap_sock_getsockopt_old() 417 opts.omtu = chan->omtu; in l2cap_sock_getsockopt_old() 418 opts.flush_to = chan->flush_to; in l2cap_sock_getsockopt_old() 419 opts.mode = chan->mode; in l2cap_sock_getsockopt_old() 420 opts.fcs = chan->fcs; in l2cap_sock_getsockopt_old() 421 opts.max_tx = chan->max_tx; in l2cap_sock_getsockopt_old() 422 opts.txwin_size = chan->tx_win; in l2cap_sock_getsockopt_old() 424 len = min_t(unsigned int, len, sizeof(opts)); in l2cap_sock_getsockopt_old() [all …]
|
D | sco.c | 855 struct sco_options opts; in sco_sock_getsockopt_old() local 875 opts.mtu = sco_pi(sk)->conn->mtu; in sco_sock_getsockopt_old() 877 BT_DBG("mtu %d", opts.mtu); in sco_sock_getsockopt_old() 879 len = min_t(unsigned int, len, sizeof(opts)); in sco_sock_getsockopt_old() 880 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old()
|
/net/ipv4/ |
D | tcp_output.c | 444 struct tcp_out_options *opts) in tcp_options_write() argument 446 u16 options = opts->options; /* mungable copy */ in tcp_options_write() 452 opts->hash_location = (__u8 *)ptr; in tcp_options_write() 456 if (unlikely(opts->mss)) { in tcp_options_write() 459 opts->mss); in tcp_options_write() 475 *ptr++ = htonl(opts->tsval); in tcp_options_write() 476 *ptr++ = htonl(opts->tsecr); in tcp_options_write() 490 opts->ws); in tcp_options_write() 493 if (unlikely(opts->num_sack_blocks)) { in tcp_options_write() 501 (TCPOLEN_SACK_BASE + (opts->num_sack_blocks * in tcp_options_write() [all …]
|
/net/sched/ |
D | sch_dsmark.c | 417 struct nlattr *opts = NULL; in dsmark_dump_class() local 427 opts = nla_nest_start(skb, TCA_OPTIONS); in dsmark_dump_class() 428 if (opts == NULL) in dsmark_dump_class() 434 return nla_nest_end(skb, opts); in dsmark_dump_class() 437 nla_nest_cancel(skb, opts); in dsmark_dump_class() 444 struct nlattr *opts = NULL; in dsmark_dump() local 446 opts = nla_nest_start(skb, TCA_OPTIONS); in dsmark_dump() 447 if (opts == NULL) in dsmark_dump() 460 return nla_nest_end(skb, opts); in dsmark_dump() 463 nla_nest_cancel(skb, opts); in dsmark_dump()
|
D | sch_codel.c | 191 struct nlattr *opts; in codel_dump() local 193 opts = nla_nest_start(skb, TCA_OPTIONS); in codel_dump() 194 if (opts == NULL) in codel_dump() 207 return nla_nest_end(skb, opts); in codel_dump() 210 nla_nest_cancel(skb, opts); in codel_dump()
|
D | sch_red.c | 261 struct nlattr *opts = NULL; in red_dump() local 273 opts = nla_nest_start(skb, TCA_OPTIONS); in red_dump() 274 if (opts == NULL) in red_dump() 279 return nla_nest_end(skb, opts); in red_dump() 282 nla_nest_cancel(skb, opts); in red_dump()
|
D | sch_pie.c | 464 struct nlattr *opts; in pie_dump() local 466 opts = nla_nest_start(skb, TCA_OPTIONS); in pie_dump() 467 if (opts == NULL) in pie_dump() 482 return nla_nest_end(skb, opts); in pie_dump() 485 nla_nest_cancel(skb, opts); in pie_dump()
|
D | sch_choke.c | 504 struct nlattr *opts = NULL; in choke_dump() local 515 opts = nla_nest_start(skb, TCA_OPTIONS); in choke_dump() 516 if (opts == NULL) in choke_dump() 522 return nla_nest_end(skb, opts); in choke_dump() 525 nla_nest_cancel(skb, opts); in choke_dump()
|
D | sch_gred.c | 510 struct nlattr *parms, *opts = NULL; in gred_dump() local 520 opts = nla_nest_start(skb, TCA_OPTIONS); in gred_dump() 521 if (opts == NULL) in gred_dump() 584 return nla_nest_end(skb, opts); in gred_dump() 587 nla_nest_cancel(skb, opts); in gred_dump()
|
D | sch_sfb.c | 561 struct nlattr *opts; in sfb_dump() local 575 opts = nla_nest_start(skb, TCA_OPTIONS); in sfb_dump() 576 if (opts == NULL) in sfb_dump() 580 return nla_nest_end(skb, opts); in sfb_dump() 583 nla_nest_cancel(skb, opts); in sfb_dump()
|
D | sch_hhf.c | 677 struct nlattr *opts; in hhf_dump() local 679 opts = nla_nest_start(skb, TCA_OPTIONS); in hhf_dump() 680 if (opts == NULL) in hhf_dump() 694 return nla_nest_end(skb, opts); in hhf_dump()
|
D | sch_fq_codel.c | 438 struct nlattr *opts; in fq_codel_dump() local 440 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_codel_dump() 441 if (opts == NULL) in fq_codel_dump() 458 return nla_nest_end(skb, opts); in fq_codel_dump()
|
D | sch_fq.c | 762 struct nlattr *opts; in fq_dump() local 764 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_dump() 765 if (opts == NULL) in fq_dump() 781 return nla_nest_end(skb, opts); in fq_dump()
|
/net/openvswitch/ |
D | flow.h | 70 struct geneve_opt *opts, in ovs_flow_tun_info_init() argument 84 tun_info->options = opts; in ovs_flow_tun_info_init()
|
D | flow_netlink.c | 1044 const struct geneve_opt *opts = NULL; in ovs_nla_put_flow() local 1047 opts = GENEVE_OPTS(output, swkey->tun_opts_len); in ovs_nla_put_flow() 1049 if (ipv4_tun_to_nlattr(skb, &output->tun_key, opts, in ovs_nla_put_flow()
|