Searched defs:opt (Results 1 - 25 of 143) sorted by relevance

123456

/net/ipv4/
H A Dip_forward.c62 struct ip_options *opt = &(IPCB(skb)->opt); local
67 if (unlikely(opt->optlen))
78 struct ip_options *opt = &(IPCB(skb)->opt); local
90 if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb))
108 if (opt->is_strictroute && rt->rt_uses_gateway)
132 if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb_sec_path(skb))
H A Dip_input.c262 struct ip_options *opt; local
279 opt = &(IPCB(skb)->opt);
280 opt->optlen = iph->ihl*4 - sizeof(struct iphdr);
282 if (ip_options_compile(dev_net(dev), opt, skb)) {
287 if (unlikely(opt->srr)) {
/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));
/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 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 Dact_gact.c146 struct tc_gact opt = { local
154 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt))
H A Dact_mirred.c189 struct tc_mirred opt = { local
199 if (nla_put(skb, TCA_MIRRED_PARMS, sizeof(opt), &opt))
H A Dact_nat.c255 struct tc_nat opt = { local
268 if (nla_put(skb, TCA_NAT_PARMS, sizeof(opt), &opt))
H A Dact_pedit.c181 struct tc_pedit *opt; local
185 s = sizeof(*opt) + p->tcfp_nkeys * sizeof(struct tc_pedit_key);
188 opt = kzalloc(s, GFP_ATOMIC);
189 if (unlikely(!opt))
192 memcpy(opt->keys, p->tcfp_keys,
194 opt->index = p->tcf_index;
195 opt->nkeys = p->tcfp_nkeys;
196 opt->flags = p->tcfp_flags;
197 opt->action = p->tcf_action;
198 opt
[all...]
H A Dact_simple.c140 struct tc_defact opt = { local
148 if (nla_put(skb, TCA_DEF_PARMS, sizeof(opt), &opt) ||
H A Dact_skbedit.c141 struct tc_skbedit opt = { local
149 if (nla_put(skb, TCA_SKBEDIT_PARMS, sizeof(opt), &opt))
H A Dsch_codel.c114 static int codel_change(struct Qdisc *sch, struct nlattr *opt) argument
121 if (!opt)
124 err = nla_parse_nested(tb, TCA_CODEL_MAX, opt, codel_policy);
161 static int codel_init(struct Qdisc *sch, struct nlattr *opt) argument
171 if (opt) {
172 int err = codel_change(sch, opt);
/net/ipv6/
H A Dip6_input.c308 struct inet6_skb_parm *opt = IP6CB(skb); local
311 if (unlikely(opt->flags & IP6SKB_ROUTERALERT)) {
320 if (opt->ra == htons(IPV6_OPT_ROUTERALERT_MLD)) {
H A Dipcomp6.c56 static int ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
H A Dtunnel6.c137 static void tunnel6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
143 if (!handler->err_handler(skb, opt, type, code, offset, info))
H A Dudplite.c23 struct inet6_skb_parm *opt,
26 __udp6_lib_err(skb, opt, type, code, offset, info, &udplite_table);
22 udplitev6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument
H A Dxfrm6_protocol.c83 static void xfrm6_esp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
89 if (!handler->err_handler(skb, opt, type, code, offset, info))
110 static void xfrm6_ah_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
116 if (!handler->err_handler(skb, opt, type, code, offset, info))
137 static void xfrm6_ipcomp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
143 if (!handler->err_handler(skb, opt, type, code, offset, info))
/net/netfilter/
H A Dnf_sockopt.c93 char __user *opt, int *len, int get)
103 ret = ops->get(sk, val, opt, len);
105 ret = ops->set(sk, val, opt, *len);
111 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, argument
114 return nf_sockopt(sk, pf, val, opt, &len, 0);
118 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, argument
121 return nf_sockopt(sk, pf, val, opt, len, 1);
127 char __user *opt, int *len, int get)
138 ret = ops->compat_get(sk, val, opt, len);
140 ret = ops->get(sk, val, opt, le
92 nf_sockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len, int get) argument
126 compat_nf_sockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len, int get) argument
152 compat_nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, unsigned int len) argument
159 compat_nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len) argument
[all...]
H A Dxt_RATEEST.c97 struct nlattr opt; member in struct:__anon102
134 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est));
135 cfg.opt.nla_type = TCA_STATS_RATE_EST;
140 &est->lock, &cfg.opt);
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
60 opt = (u_int8_t *)tcph;
67 optl = optlen(opt, i);
72 if (!tcpoptstrip_test_bit(info->strip_bmap, opt[i]))
76 o = opt[i+j];
85 memset(opt
[all...]
H A Dxt_set.c33 struct ip_set_adt_opt *opt, int inv)
35 if (ip_set_test(index, skb, par, opt))
55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim,
58 return match_set(info->match_set.index, skb, par, &opt,
117 ADT_OPT(opt, par->family, info->match_set.dim,
120 if (opt.flags & IPSET_RETURN_NOMATCH)
121 opt.cmdflags |= IPSET_FLAG_RETURN_NOMATCH;
123 return match_set(info->match_set.index, skb, par, &opt,
181 ADT_OPT(opt, par->family, info->match_set.dim,
187 opt
31 match_set(ip_set_id_t index, const struct sk_buff *skb, const struct xt_action_param *par, struct ip_set_adt_opt *opt, int inv) argument
[all...]
/net/core/
H A Dgen_estimator.c195 * @opt: rate estimator configuration TLV
210 struct nlattr *opt)
213 struct gnet_estimator *parm = nla_data(opt);
217 if (nla_len(opt) < sizeof(*parm))
291 * @opt: rate estimator configuration TLV
301 spinlock_t *stats_lock, struct nlattr *opt)
304 return gen_new_estimator(bstats, cpu_bstats, rate_est, stats_lock, opt);
206 gen_new_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_basic_cpu __percpu *cpu_bstats, struct gnet_stats_rate_est64 *rate_est, spinlock_t *stats_lock, struct nlattr *opt) argument
298 gen_replace_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_basic_cpu __percpu *cpu_bstats, struct gnet_stats_rate_est64 *rate_est, spinlock_t *stats_lock, struct nlattr *opt) argument
/net/dns_resolver/
H A Ddns_key.c67 const char *data = prep->data, *end, *opt; local
77 opt = memchr(data, '#', datalen);
78 if (!opt) {
85 result_len = opt - data;
86 opt++;
87 kdebug("options: '%s'", opt);
92 next_opt = memchr(opt, '#', end - opt) ?: end;
93 opt_len = next_opt - opt;
100 eq = memchr(opt, '
[all...]
/net/netfilter/ipset/
H A Dip_set_hash_mac.c77 enum ipset_adt adt, struct ip_set_adt_opt *opt)
81 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set);
84 if (!(opt->flags & IPSET_DIM_ONE_SRC))
94 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags);
75 hash_mac4_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

Completed in 881 milliseconds

123456