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

123456

/net/ipv4/
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 Dip_input.c264 struct ip_options *opt; local
281 opt = &(IPCB(skb)->opt);
282 opt->optlen = iph->ihl*4 - sizeof(struct iphdr);
284 if (ip_options_compile(dev_net(dev), opt, skb)) {
289 if (unlikely(opt->srr)) {
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 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...]
/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.c166 struct tc_gact opt = { local
174 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt))
H A Dact_simple.c171 struct tc_defact opt = { local
179 if (nla_put(skb, TCA_DEF_PARMS, sizeof(opt), &opt) ||
H A Dact_skbedit.c162 struct tc_skbedit opt = { local
170 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);
H A Dsch_mq.c38 static int mq_init(struct Qdisc *sch, struct nlattr *opt) argument
/net/ipv6/
H A Dip6_input.c304 struct inet6_skb_parm *opt = IP6CB(skb); local
307 if (unlikely(opt->flags & IP6SKB_ROUTERALERT)) {
316 if (opt->ra == htons(IPV6_OPT_ROUTERALERT_MLD)) {
H A Dipcomp6.c57 static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
H A Dtunnel6.c140 static void tunnel6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
146 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
/net/netfilter/
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_RATEEST.c97 struct nlattr opt; member in struct:__anon98
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
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...]
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,
189 ADT_OPT(opt, par->family, info->match_set.dim,
192 if (opt.flags & IPSET_RETURN_NOMATCH)
193 opt.cmdflags |= IPSET_FLAG_RETURN_NOMATCH;
195 return match_set(info->match_set.index, skb, par, &opt,
347 ADT_OPT(opt, par->family, info->match_set.dim,
353 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.c194 * @opt: rate estimator configuration TLV
208 struct nlattr *opt)
211 struct gnet_estimator *parm = nla_data(opt);
214 if (nla_len(opt) < sizeof(*parm))
285 * @opt: rate estimator configuration TLV
294 spinlock_t *stats_lock, struct nlattr *opt)
297 return gen_new_estimator(bstats, rate_est, stats_lock, opt);
205 gen_new_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_rate_est *rate_est, spinlock_t *stats_lock, struct nlattr *opt) argument
292 gen_replace_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_rate_est *rate_est, spinlock_t *stats_lock, struct nlattr *opt) argument
/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/dccp/
H A Dccid.h66 u8 opt, u8 *val, u8 len);
72 u8 opt, u8 *val, u8 len);
197 * @pkt: type of packet that @opt appears on (RFC 4340, 5.1)
198 * @opt: the CCID-specific option type (RFC 4340, 5.8 and 10.3)
199 * @val: value of @opt
203 u8 pkt, u8 opt, u8 *val, u8 len)
207 return ccid->ccid_ops->ccid_hc_tx_parse_options(sk, pkt, opt, val, len);
215 u8 pkt, u8 opt, u8 *val, u8 len)
219 return ccid->ccid_ops->ccid_hc_rx_parse_options(sk, pkt, opt, val, len);
202 ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk, u8 pkt, u8 opt, u8 *val, u8 len) argument
214 ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk, u8 pkt, u8 opt, u8 *val, u8 len) argument
H A Doptions.c62 unsigned char opt, len; local
71 opt = len = 0;
73 opt = *opt_ptr++;
78 if (opt > DCCPO_MAX_RESERVED) {
102 if (dreq != NULL && (opt >= DCCPO_MIN_RX_CCID_SPECIFIC ||
103 opt == DCCPO_ACK_VECTOR_0 || opt == DCCPO_ACK_VECTOR_1))
106 switch (opt) {
120 dccp_pr_debug("%s opt: NDP count=%llu\n", dccp_role(sk),
128 rc = dccp_feat_parse_options(sk, dreq, mandatory, opt,
[all...]

Completed in 238 milliseconds

123456