/net/ipv4/ |
H A D | ip_forward.c | 62 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 D | ip_input.c | 262 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 D | ar-local.c | 63 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 D | sch_plug.c | 123 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 D | em_ipset.c | 56 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 D | sch_fifo.c | 51 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 D | act_gact.c | 146 struct tc_gact opt = { local 154 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt))
|
H A D | act_mirred.c | 189 struct tc_mirred opt = { local 199 if (nla_put(skb, TCA_MIRRED_PARMS, sizeof(opt), &opt))
|
H A D | act_nat.c | 255 struct tc_nat opt = { local 268 if (nla_put(skb, TCA_NAT_PARMS, sizeof(opt), &opt))
|
H A D | act_pedit.c | 181 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 D | act_simple.c | 140 struct tc_defact opt = { local 148 if (nla_put(skb, TCA_DEF_PARMS, sizeof(opt), &opt) ||
|
H A D | act_skbedit.c | 141 struct tc_skbedit opt = { local 149 if (nla_put(skb, TCA_SKBEDIT_PARMS, sizeof(opt), &opt))
|
H A D | sch_codel.c | 114 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 D | ip6_input.c | 308 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 D | ipcomp6.c | 56 static int ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument
|
H A D | tunnel6.c | 137 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 D | udplite.c | 23 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 D | xfrm6_protocol.c | 83 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 D | nf_sockopt.c | 93 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 D | xt_RATEEST.c | 97 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 D | xt_TCPOPTSTRIP.c | 22 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 D | xt_set.c | 33 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 D | gen_estimator.c | 195 * @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 D | dns_key.c | 67 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 D | ip_set_hash_mac.c | 77 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
|