Searched refs:opt (Results 1 - 25 of 152) sorted by relevance

1234567

/net/ipv4/
H A Dip_options.c43 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, argument
48 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options));
49 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen);
50 opt = &(IPCB(skb)->opt);
52 if (opt->srr)
53 memcpy(iph+opt->srr+iph[opt
216 struct ip_options *opt = &(IPCB(skb)->opt); local
259 ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb) argument
484 ip_options_undo(struct ip_options *opt) argument
517 ip_options_get_finish(struct net *net, struct ip_options_rcu **optp, struct ip_options_rcu *opt, int optlen) argument
535 struct ip_options_rcu *opt = ip_options_get_alloc(optlen); local
549 struct ip_options_rcu *opt = ip_options_get_alloc(optlen); local
560 struct ip_options *opt = &(IPCB(skb)->opt); local
607 struct ip_options *opt = &(IPCB(skb)->opt); local
[all...]
H A Dcipso_ipv4.c1619 unsigned char *opt = *option; local
1629 opt_len = opt[1];
1636 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2]));
1643 tag = opt + opt_iter;
1752 *option = opt + err_offset;
1884 struct ip_options_rcu *old, *opt = NULL; local
1915 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC);
1916 if (opt == NULL) {
1920 memcpy(opt
1968 struct ip_options_rcu *opt = NULL; local
2028 struct ip_options_rcu *opt = *opt_ptr; local
2092 struct ip_options_rcu *opt; local
2118 struct ip_options_rcu *opt; local
2193 struct ip_options_rcu *opt; local
2223 struct ip_options *opt = &IPCB(skb)->opt; local
2299 struct ip_options *opt = &IPCB(skb)->opt; local
[all...]
H A Dip_forward.c44 struct ip_options *opt = &(IPCB(skb)->opt); local
49 if (unlikely(opt->optlen))
59 struct ip_options *opt = &(IPCB(skb)->opt); local
67 if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb))
88 if (opt->is_strictroute && rt->rt_uses_gateway)
111 if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb_sec_path(skb))
H A Dsyncookies.c267 struct ip_options *opt)
328 if (opt && opt->optlen) {
329 int opt_size = sizeof(struct ip_options_rcu) + opt->optlen;
331 ireq->opt = kmalloc(opt_size, GFP_ATOMIC);
332 if (ireq->opt != NULL && ip_options_echo(&ireq->opt->opt, skb)) {
333 kfree(ireq->opt);
334 ireq->opt
266 cookie_v4_check(struct sock *sk, struct sk_buff *skb, struct ip_options *opt) argument
[all...]
H A Dip_output.c130 __be32 saddr, __be32 daddr, struct ip_options_rcu *opt)
137 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0));
148 iph->daddr = (opt && opt->opt.srr ? opt->opt.faddr : daddr);
153 if (opt
129 ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, __be32 saddr, __be32 daddr, struct ip_options_rcu *opt) argument
809 struct ip_options *opt = cork->opt; local
1042 struct ip_options_rcu *opt; local
1119 struct ip_options *opt = NULL; local
1280 struct ip_options *opt = NULL; local
[all...]
/net/ipv6/
H A Dexthdrs.c187 struct inet6_skb_parm *opt = IP6CB(skb); local
192 if (opt->dsthao) {
196 opt->dsthao = opt->dst1;
197 opt->dst1 = 0;
258 struct inet6_skb_parm *opt = IP6CB(skb); local
273 opt->lastopt = opt->dst1 = skb_network_header_len(skb);
275 dstbuf = opt->dst1;
280 opt
301 struct inet6_skb_parm *opt = IP6CB(skb); local
626 struct inet6_skb_parm *opt = IP6CB(skb); local
661 ipv6_push_rthdr(struct sk_buff *skb, u8 *proto, struct ipv6_rt_hdr *opt, struct in6_addr **addr_p) argument
686 ipv6_push_exthdr(struct sk_buff *skb, u8 *proto, u8 type, struct ipv6_opt_hdr *opt) argument
695 ipv6_push_nfrag_opts(struct sk_buff *skb, struct ipv6_txoptions *opt, u8 *proto, struct in6_addr **daddr) argument
713 ipv6_push_frag_opts(struct sk_buff *skb, struct ipv6_txoptions *opt, u8 *proto) argument
720 ipv6_dup_options(struct sock *sk, struct ipv6_txoptions *opt) argument
767 ipv6_renew_options(struct sock *sk, struct ipv6_txoptions *opt, int newtype, struct ipv6_opt_hdr __user *newopt, int newoptlen) argument
838 ipv6_fixup_options(struct ipv6_txoptions *opt_space, struct ipv6_txoptions *opt) argument
869 fl6_update_dst(struct flowi6 *fl6, const struct ipv6_txoptions *opt, struct in6_addr *orig) argument
[all...]
H A Dipv6_sockglue.c103 struct ipv6_txoptions *opt)
106 if (opt &&
110 icsk->icsk_ext_hdr_len = opt->opt_flen + opt->opt_nflen;
113 opt = xchg(&inet6_sk(sk)->opt, opt);
116 opt = xchg(&inet6_sk(sk)->opt, opt);
102 ipv6_update_options(struct sock *sk, struct ipv6_txoptions *opt) argument
155 struct ipv6_txoptions *opt; local
370 struct ipv6_txoptions *opt; local
446 struct ipv6_txoptions *opt = NULL; local
912 ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt, int optname, char __user *optval, int len) argument
[all...]
H A Ddatagram.c52 struct ipv6_txoptions *opt; local
172 opt = flowlabel ? flowlabel->opt : np->opt;
173 final_p = fl6_update_dst(&fl6, opt, &final);
478 struct inet6_skb_parm *opt = IP6CB(skb); local
484 src_info.ipi6_ifindex = opt->iif;
506 if (np->rxopt.bits.hopopts && opt->hop) {
507 u8 *ptr = nh + opt->hop;
511 if (opt
609 ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg, struct flowi6 *fl6, struct ipv6_txoptions *opt, int *hlimit, int *tclass, int *dontfrag) argument
[all...]
H A Dip6_output.c180 struct ipv6_txoptions *opt, int tclass)
192 if (opt) {
198 head_room = opt->opt_nflen + opt->opt_flen;
214 if (opt->opt_flen)
215 ipv6_push_frag_opts(skb, opt, &proto);
216 if (opt->opt_nflen)
217 ipv6_push_nfrag_opts(skb, opt, &proto, &first_hop);
351 struct inet6_skb_parm *opt = IP6CB(skb); local
384 if (unlikely(opt
179 ip6_xmit(struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6, struct ipv6_txoptions *opt, int tclass) argument
1124 ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, int hlimit, int tclass, struct ipv6_txoptions *opt, struct flowi6 *fl6, struct rt6_info *rt, unsigned int flags, int dontfrag) argument
1497 struct ipv6_txoptions *opt = np->cork.opt; local
[all...]
/net/sched/
H A Dsch_plug.c123 static int plug_init(struct Qdisc *sch, struct nlattr *opt) argument
132 if (opt == NULL) {
140 struct tc_plug_qopt *ctl = nla_data(opt);
142 if (nla_len(opt) < sizeof(*ctl))
162 static int plug_change(struct Qdisc *sch, struct nlattr *opt) argument
167 if (opt == NULL)
170 msg = nla_data(opt);
171 if (nla_len(opt) < sizeof(*msg))
H A Dem_ipset.c56 struct ip_set_adt_opt opt; local
82 opt.family = acpar.family;
83 opt.dim = set->dim;
84 opt.flags = set->flags;
85 opt.cmdflags = 0;
86 opt.ext.timeout = ~0u;
101 ret = ip_set_test(set->index, skb, &acpar, &opt);
H A Dact_pedit.c201 struct tc_pedit *opt; local
205 s = sizeof(*opt) + p->tcfp_nkeys * sizeof(struct tc_pedit_key);
208 opt = kzalloc(s, GFP_ATOMIC);
209 if (unlikely(!opt))
212 memcpy(opt->keys, p->tcfp_keys,
214 opt->index = p->tcf_index;
215 opt->nkeys = p->tcfp_nkeys;
216 opt->flags = p->tcfp_flags;
217 opt->action = p->tcf_action;
218 opt
[all...]
H A Dsch_gred.c419 static int gred_change(struct Qdisc *sch, struct nlattr *opt) argument
429 if (opt == NULL)
432 err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy);
437 return gred_change_table_def(sch, opt);
489 static int gred_init(struct Qdisc *sch, struct nlattr *opt) argument
494 if (opt == NULL)
497 err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy);
540 struct tc_gred_qopt opt; local
543 memset(&opt, 0, sizeof(opt));
[all...]
H A Dsch_fifo.c51 static int fifo_init(struct Qdisc *sch, struct nlattr *opt) argument
56 if (opt == NULL) {
64 struct tc_fifo_qopt *ctl = nla_data(opt);
66 if (nla_len(opt) < sizeof(*ctl))
86 struct tc_fifo_qopt opt = { .limit = sch->limit }; local
88 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt))
H A Dsch_tbf.c228 static int tbf_change(struct Qdisc *sch, struct nlattr *opt) argument
239 err = nla_parse_nested(tb, TCA_TBF_PTAB, opt, tbf_policy);
319 static int tbf_init(struct Qdisc *sch, struct nlattr *opt) argument
323 if (opt == NULL)
330 return tbf_change(sch, opt);
345 struct tc_tbf_qopt opt; local
352 opt.limit = q->limit;
353 psched_ratecfg_getrate(&opt.rate, &q->rate);
355 psched_ratecfg_getrate(&opt.peakrate, &q->peak);
357 memset(&opt
[all...]
H A Dsch_mqprio.c92 static int mqprio_init(struct Qdisc *sch, struct nlattr *opt) argument
110 if (!opt || nla_len(opt) < sizeof(*qopt))
113 qopt = nla_data(opt);
223 struct tc_mqprio_qopt opt = { 0 }; local
245 opt.num_tc = netdev_get_num_tc(dev);
246 memcpy(opt.prio_tc_map, dev->prio_tc_map, sizeof(opt.prio_tc_map));
247 opt.hw = priv->hw_owned;
250 opt
[all...]
H A Dsch_sfq.c639 static int sfq_change(struct Qdisc *sch, struct nlattr *opt) argument
642 struct tc_sfq_qopt *ctl = nla_data(opt);
647 if (opt->nla_len < nla_attr_size(sizeof(*ctl)))
649 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1)))
650 ctl_v1 = nla_data(opt);
737 static int sfq_init(struct Qdisc *sch, struct nlattr *opt) argument
762 if (opt) {
763 int err = sfq_change(sch, opt);
792 struct tc_sfq_qopt_v1 opt; local
795 memset(&opt,
[all...]
/net/ceph/
H A Dceph_common.c247 void ceph_destroy_options(struct ceph_options *opt) argument
249 dout("destroy_options %p\n", opt);
250 kfree(opt->name);
251 if (opt->key) {
252 ceph_crypto_key_destroy(opt->key);
253 kfree(opt->key);
255 kfree(opt->mon_addr);
256 kfree(opt);
308 struct ceph_options *opt; local
316 opt
463 ceph_create_client(struct ceph_options *opt, void *private, unsigned int supported_features, unsigned int required_features) argument
[all...]
/net/netfilter/
H A Dxt_TCPMSS.c37 optlen(const u_int8_t *opt, unsigned int offset) argument
40 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0)
43 return opt[offset+1];
58 u8 *opt; local
89 opt = (u_int8_t *)tcph;
90 for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)) {
91 if (opt[i] == TCPOPT_MSS && tcph->doff*4 - i >= TCPOLEN_MSS &&
92 opt[i+1] == TCPOLEN_MSS) {
95 oldmss = (opt[
[all...]
H A Dnf_sockopt.c97 char __user *opt, int *len, int get)
107 ret = ops->get(sk, val, opt, len);
109 ret = ops->set(sk, val, opt, *len);
115 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, argument
118 return nf_sockopt(sk, pf, val, opt, &len, 0);
122 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, argument
125 return nf_sockopt(sk, pf, val, opt, len, 1);
131 char __user *opt, int *len, int get)
142 ret = ops->compat_get(sk, val, opt, len);
144 ret = ops->get(sk, val, opt, le
96 nf_sockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len, int get) argument
130 compat_nf_sockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len, int get) argument
156 compat_nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, unsigned int len) argument
163 compat_nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len) argument
[all...]
H A Dxt_TCPOPTSTRIP.c22 static inline unsigned int optlen(const u_int8_t *opt, unsigned int offset) argument
25 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0)
28 return opt[offset+1];
40 u_int8_t *opt; local
58 opt = (u_int8_t *)tcph;
65 optl = optlen(opt, i);
70 if (!tcpoptstrip_test_bit(info->strip_bmap, opt[i]))
74 o = opt[i+j];
83 memset(opt
[all...]
/net/dns_resolver/
H A Ddns_key.c68 const char *data = prep->data, *end, *opt; local
80 opt = memchr(data, '#', datalen);
81 if (!opt) {
88 result_len = opt - data;
89 opt++;
90 kdebug("options: '%s'", opt);
95 next_opt = memchr(opt, '#', end - opt) ?: end;
96 opt_len = next_opt - opt;
104 eq = memchr(opt, '
[all...]
/net/netfilter/ipset/
H A Dip_set_hash_ip.c97 enum ipset_adt adt, struct ip_set_adt_opt *opt)
102 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, h);
105 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &ip);
111 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags);
251 enum ipset_adt adt, struct ip_set_adt_opt *opt)
256 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, h);
258 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6);
263 return adtfn(set, &e, &ext, &opt->ext, opt
95 hash_ip4_kadt(struct ip_set *set, const struct sk_buff *skb, const struct xt_action_param *par, enum ipset_adt adt, struct ip_set_adt_opt *opt) argument
249 hash_ip6_kadt(struct ip_set *set, const struct sk_buff *skb, const struct xt_action_param *par, enum ipset_adt adt, struct ip_set_adt_opt *opt) argument
[all...]
H A Dip_set_hash_ipport.c117 enum ipset_adt adt, struct ip_set_adt_opt *opt)
122 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, h);
124 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC,
128 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip);
129 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags);
307 enum ipset_adt adt, struct ip_set_adt_opt *opt)
312 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, h);
314 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC,
318 ip6addrptr(skb, opt
115 hash_ipport4_kadt(struct ip_set *set, const struct sk_buff *skb, const struct xt_action_param *par, enum ipset_adt adt, struct ip_set_adt_opt *opt) argument
305 hash_ipport6_kadt(struct ip_set *set, const struct sk_buff *skb, const struct xt_action_param *par, enum ipset_adt adt, struct ip_set_adt_opt *opt) argument
[all...]
/net/rxrpc/
H A Dar-local.c63 int ret, opt; local
88 opt = 1;
90 (char *) &opt, sizeof(opt));
97 opt = IP_PMTUDISC_DO;
99 (char *) &opt, sizeof(opt));

Completed in 314 milliseconds

1234567