/net/mptcp/ |
D | options.c | 334 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options() argument 343 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options() 349 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options() 350 opts->join_id = subflow->local_id; in mptcp_syn_options() 351 opts->token = subflow->remote_token; in mptcp_syn_options() 352 opts->nonce = subflow->local_nonce; in mptcp_syn_options() 353 opts->backup = subflow->request_bkup; in mptcp_syn_options() 396 struct mptcp_out_options *opts) in mptcp_established_options_mp() argument 424 opts->ext_copy.data_len = data_len; in mptcp_established_options_mp() 425 opts->suboptions = OPTION_MPTCP_MPC_ACK; in mptcp_established_options_mp() [all …]
|
/net/netfilter/ |
D | nf_synproxy_core.c | 29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument 41 opts->options = 0; in synproxy_parse_options() 64 opts->mss_option = get_unaligned_be16(ptr); in synproxy_parse_options() 65 opts->options |= NF_SYNPROXY_OPT_MSS; in synproxy_parse_options() 70 opts->wscale = *ptr; in synproxy_parse_options() 71 if (opts->wscale > TCP_MAX_WSCALE) in synproxy_parse_options() 72 opts->wscale = TCP_MAX_WSCALE; in synproxy_parse_options() 73 opts->options |= NF_SYNPROXY_OPT_WSCALE; in synproxy_parse_options() 78 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options() 79 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options() [all …]
|
D | nft_tunnel.c | 155 struct nft_tunnel_opts opts; member 230 struct nft_tunnel_opts *opts) in nft_tunnel_obj_vxlan_init() argument 243 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); in nft_tunnel_obj_vxlan_init() 245 opts->len = sizeof(struct vxlan_metadata); in nft_tunnel_obj_vxlan_init() 246 opts->flags = TUNNEL_VXLAN_OPT; in nft_tunnel_obj_vxlan_init() 259 struct nft_tunnel_opts *opts) in nft_tunnel_obj_erspan_init() argument 280 opts->u.erspan.u.index = in nft_tunnel_obj_erspan_init() 291 set_hwid(&opts->u.erspan.u.md2, hwid); in nft_tunnel_obj_erspan_init() 292 opts->u.erspan.u.md2.dir = dir; in nft_tunnel_obj_erspan_init() 297 opts->u.erspan.version = version; in nft_tunnel_obj_erspan_init() [all …]
|
D | nft_synproxy.c | 23 static void nft_synproxy_tcp_options(struct synproxy_options *opts, in nft_synproxy_tcp_options() argument 31 opts->options |= NF_SYNPROXY_OPT_ECN; in nft_synproxy_tcp_options() 33 opts->options &= priv->info.options; in nft_synproxy_tcp_options() 34 opts->mss_encode = opts->mss_option; in nft_synproxy_tcp_options() 35 opts->mss_option = info->mss; in nft_synproxy_tcp_options() 36 if (opts->options & NF_SYNPROXY_OPT_TIMESTAMP) in nft_synproxy_tcp_options() 37 synproxy_init_timestamp_cookie(info, opts); in nft_synproxy_tcp_options() 39 opts->options &= ~(NF_SYNPROXY_OPT_WSCALE | in nft_synproxy_tcp_options() 49 struct synproxy_options *opts) in nft_synproxy_eval_v4() argument 58 nft_synproxy_tcp_options(opts, tcp, snet, &info, priv); in nft_synproxy_eval_v4() [all …]
|
D | nfnetlink_osf.c | 168 unsigned char *opts, in nf_osf_hdr_ctx_init() argument 188 sizeof(struct tcphdr), ctx->optsize, opts); in nf_osf_hdr_ctx_init() 204 unsigned char opts[MAX_IPOPTLEN]; in nf_osf_match() local 214 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph); in nf_osf_match() 267 unsigned char opts[MAX_IPOPTLEN]; in nf_osf_find() local 276 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph); in nf_osf_find()
|
/net/ipv4/netfilter/ |
D | ipt_SYNPROXY.c | 18 struct synproxy_options opts = {}; in synproxy_tg4() local 28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4() 36 opts.options |= XT_SYNPROXY_OPT_ECN; in synproxy_tg4() 38 opts.options &= info->options; in synproxy_tg4() 39 opts.mss_encode = opts.mss_option; in synproxy_tg4() 40 opts.mss_option = info->mss; in synproxy_tg4() 41 if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP) in synproxy_tg4() 42 synproxy_init_timestamp_cookie(info, &opts); in synproxy_tg4() 44 opts.options &= ~(XT_SYNPROXY_OPT_WSCALE | in synproxy_tg4() 48 synproxy_send_client_synack(net, skb, th, &opts); in synproxy_tg4() [all …]
|
/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 18 struct synproxy_options opts = {}; in synproxy_tg6() local 28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6() 36 opts.options |= XT_SYNPROXY_OPT_ECN; in synproxy_tg6() 38 opts.options &= info->options; in synproxy_tg6() 39 opts.mss_encode = opts.mss_option; in synproxy_tg6() 40 opts.mss_option = info->mss; in synproxy_tg6() 41 if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP) in synproxy_tg6() 42 synproxy_init_timestamp_cookie(info, &opts); in synproxy_tg6() 44 opts.options &= ~(XT_SYNPROXY_OPT_WSCALE | in synproxy_tg6() 48 synproxy_send_client_synack_ipv6(net, skb, th, &opts); in synproxy_tg6() [all …]
|
D | ip6t_hbh.c | 110 if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { in hbh_mt6() 112 (optinfo->opts[temp] & 0xFF00) >> 8); in hbh_mt6() 129 spec_len = optinfo->opts[temp] & 0x00FF; in hbh_mt6()
|
/net/9p/ |
D | trans_rdma.c | 175 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument 182 opts->port = P9_PORT; in parse_opts() 183 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts() 184 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts() 185 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts() 186 opts->privport = false; in parse_opts() 215 opts->port = option; in parse_opts() 218 opts->sq_depth = option; in parse_opts() 221 opts->rq_depth = option; in parse_opts() 224 opts->timeout = option; in parse_opts() [all …]
|
D | trans_fd.c | 755 static int parse_opts(char *params, struct p9_fd_opts *opts) in parse_opts() argument 762 opts->port = P9_PORT; in parse_opts() 763 opts->rfd = ~0; in parse_opts() 764 opts->wfd = ~0; in parse_opts() 765 opts->privport = false; in parse_opts() 794 opts->port = option; in parse_opts() 797 opts->rfd = option; in parse_opts() 800 opts->wfd = option; in parse_opts() 803 opts->privport = true; in parse_opts() 985 struct p9_fd_opts opts; in p9_fd_create_tcp() local [all …]
|
/net/ipv4/ |
D | tcp_output.c | 445 static void mptcp_options_write(__be32 *ptr, struct tcp_out_options *opts) in mptcp_options_write() argument 448 if (unlikely(OPTION_MPTCP & opts->options)) in mptcp_options_write() 449 mptcp_write_options(ptr, &opts->mptcp); in mptcp_options_write() 471 struct tcp_out_options *opts, in bpf_skops_hdr_opt_len() argument 523 opts->bpf_opt_len = *remaining - sock_ops.remaining_opt_len; in bpf_skops_hdr_opt_len() 525 opts->bpf_opt_len = (opts->bpf_opt_len + 3) & ~3; in bpf_skops_hdr_opt_len() 527 *remaining -= opts->bpf_opt_len; in bpf_skops_hdr_opt_len() 534 struct tcp_out_options *opts) in bpf_skops_write_hdr_opt() argument 536 u8 first_opt_off, nr_written, max_opt_len = opts->bpf_opt_len; in bpf_skops_write_hdr_opt() 578 struct tcp_out_options *opts, in bpf_skops_hdr_opt_len() argument [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 457 struct l2cap_options opts; in l2cap_sock_getsockopt_old() local 495 memset(&opts, 0, sizeof(opts)); in l2cap_sock_getsockopt_old() 496 opts.imtu = chan->imtu; in l2cap_sock_getsockopt_old() 497 opts.omtu = chan->omtu; in l2cap_sock_getsockopt_old() 498 opts.flush_to = chan->flush_to; in l2cap_sock_getsockopt_old() 499 opts.mode = chan->mode; in l2cap_sock_getsockopt_old() 500 opts.fcs = chan->fcs; in l2cap_sock_getsockopt_old() 501 opts.max_tx = chan->max_tx; in l2cap_sock_getsockopt_old() 502 opts.txwin_size = chan->tx_win; in l2cap_sock_getsockopt_old() 506 len = min_t(unsigned int, len, sizeof(opts)); in l2cap_sock_getsockopt_old() [all …]
|
D | sco.c | 905 struct sco_options opts; in sco_sock_getsockopt_old() local 925 opts.mtu = sco_pi(sk)->conn->mtu; in sco_sock_getsockopt_old() 927 BT_DBG("mtu %d", opts.mtu); in sco_sock_getsockopt_old() 929 len = min_t(unsigned int, len, sizeof(opts)); in sco_sock_getsockopt_old() 930 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old()
|
/net/sched/ |
D | sch_codel.c | 219 struct nlattr *opts; in codel_dump() local 221 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in codel_dump() 222 if (opts == NULL) in codel_dump() 238 return nla_nest_end(skb, opts); in codel_dump() 241 nla_nest_cancel(skb, opts); in codel_dump()
|
D | sch_choke.c | 435 struct nlattr *opts = NULL; in choke_dump() local 446 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in choke_dump() 447 if (opts == NULL) in choke_dump() 453 return nla_nest_end(skb, opts); in choke_dump() 456 nla_nest_cancel(skb, opts); in choke_dump()
|
D | sch_pie.c | 464 struct nlattr *opts; in pie_dump() local 466 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in pie_dump() 467 if (!opts) in pie_dump() 485 return nla_nest_end(skb, opts); in pie_dump() 488 nla_nest_cancel(skb, opts); in pie_dump()
|
D | sch_fq_pie.c | 467 struct nlattr *opts; in fq_pie_dump() local 469 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_pie_dump() 470 if (!opts) in fq_pie_dump() 492 return nla_nest_end(skb, opts); in fq_pie_dump() 495 nla_nest_cancel(skb, opts); in fq_pie_dump()
|
D | sch_red.c | 412 struct nlattr *opts = NULL; in red_dump() local 429 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in red_dump() 430 if (opts == NULL) in red_dump() 439 return nla_nest_end(skb, opts); in red_dump() 442 nla_nest_cancel(skb, opts); in red_dump()
|
D | sch_sfb.c | 570 struct nlattr *opts; in sfb_dump() local 584 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in sfb_dump() 585 if (opts == NULL) in sfb_dump() 589 return nla_nest_end(skb, opts); in sfb_dump() 592 nla_nest_cancel(skb, opts); in sfb_dump()
|
D | sch_hhf.c | 657 struct nlattr *opts; in hhf_dump() local 659 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in hhf_dump() 660 if (opts == NULL) in hhf_dump() 674 return nla_nest_end(skb, opts); in hhf_dump()
|
D | sch_ets.c | 741 struct nlattr *opts; in ets_qdisc_dump() local 751 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_qdisc_dump() 752 if (!opts) in ets_qdisc_dump() 787 return nla_nest_end(skb, opts); in ets_qdisc_dump() 790 nla_nest_cancel(skb, opts); in ets_qdisc_dump()
|
D | sch_gred.c | 760 struct nlattr *parms, *vqs, *opts = NULL; in gred_dump() local 773 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in gred_dump() 774 if (opts == NULL) in gred_dump() 893 return nla_nest_end(skb, opts); in gred_dump() 896 nla_nest_cancel(skb, opts); in gred_dump()
|
D | sch_fq_codel.c | 521 struct nlattr *opts; in fq_codel_dump() local 523 opts = nla_nest_start_noflag(skb, TCA_OPTIONS); in fq_codel_dump() 524 if (opts == NULL) in fq_codel_dump() 550 return nla_nest_end(skb, opts); in fq_codel_dump()
|
/net/tipc/ |
D | udp_media.c | 619 struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; in tipc_udp_nl_bearer_add() local 622 if (nla_parse_nested_deprecated(opts, TIPC_NLA_UDP_MAX, attr, tipc_nl_udp_policy, NULL)) in tipc_udp_nl_bearer_add() 625 if (!opts[TIPC_NLA_UDP_REMOTE]) in tipc_udp_nl_bearer_add() 628 err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_REMOTE], &addr, NULL); in tipc_udp_nl_bearer_add() 662 struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; in tipc_udp_enable() local 676 …if (nla_parse_nested_deprecated(opts, TIPC_NLA_UDP_MAX, attrs[TIPC_NLA_BEARER_UDP_OPTS], tipc_nl_u… in tipc_udp_enable() 679 if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) { in tipc_udp_enable() 685 err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_LOCAL], &local, in tipc_udp_enable() 690 err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_REMOTE], &remote, NULL); in tipc_udp_enable()
|
/net/openvswitch/ |
D | flow_netlink.c | 580 struct vxlan_metadata opts; in vxlan_tun_opt_from_nlattr() local 582 BUILD_BUG_ON(sizeof(opts) > sizeof(match->key->tun_opts)); in vxlan_tun_opt_from_nlattr() 584 memset(&opts, 0, sizeof(opts)); in vxlan_tun_opt_from_nlattr() 604 opts.gbp = nla_get_u32(a); in vxlan_tun_opt_from_nlattr() 619 SW_FLOW_KEY_PUT(match, tun_opts_len, sizeof(opts), false); in vxlan_tun_opt_from_nlattr() 623 opt_key_offset = TUN_METADATA_OFFSET(sizeof(opts)); in vxlan_tun_opt_from_nlattr() 624 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, &opts, sizeof(opts), in vxlan_tun_opt_from_nlattr() 846 const struct vxlan_metadata *opts = tun_opts; in vxlan_opt_to_nlattr() local 853 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr() 2007 const void *opts = NULL; in __ovs_nla_put_key() local [all …]
|