Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 24 of 24) sorted by relevance

/net/netfilter/
Dnf_synproxy_core.c29 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 …]
Dxt_osf.c207 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/
Dipt_SYNPROXY.c72 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/
Dip6t_SYNPROXY.c87 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 …]
Dip6t_hbh.c114 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()
DKconfig140 tristate '"hbh" hop-by-hop and "dst" opts header match support'
/net/9p/
Dtrans_rdma.c167 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 …]
Dtrans_fd.c727 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 …]
Dclient.c121 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/
Dl2cap_sock.c391 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 …]
Dsco.c855 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/
Dtcp_output.c444 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/
Dsch_dsmark.c417 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()
Dsch_codel.c191 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()
Dsch_red.c261 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()
Dsch_pie.c464 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()
Dsch_choke.c504 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()
Dsch_gred.c510 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()
Dsch_sfb.c561 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()
Dsch_hhf.c677 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()
Dsch_fq_codel.c438 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()
Dsch_fq.c762 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/
Dflow.h70 struct geneve_opt *opts, in ovs_flow_tun_info_init() argument
84 tun_info->options = opts; in ovs_flow_tun_info_init()
Dflow_netlink.c1044 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()