/linux-master/include/net/ |
H A D | icmp.h | 40 const struct ip_options *opt); 43 __icmp_send(skb_in, type, code, info, &IPCB(skb_in)->opt);
|
/linux-master/tools/testing/selftests/net/ |
H A D | bind_bhash.sh | 22 while getopts "ha:p:64" opt; do 23 case ${opt} in
|
H A D | gro.sh | 75 while getopts "i:t:p:" opt; do 76 case "${opt}" in
|
H A D | reuseport_bpf.c | 155 int i, opt; local 162 opt = 1; 163 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, 164 sizeof(opt))) 174 opt = 4; 175 if (setsockopt(fd[i], SOL_TCP, TCP_FASTOPEN, &opt, 176 sizeof(opt))) 309 int fd1, fd2, opt; local 319 opt = 1; 320 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeo 390 int fd1, fd2, opt = 1; local [all...] |
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_hash_ipportip.c | 92 enum ipset_adt adt, struct ip_set_adt_opt *opt) 96 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 98 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, 102 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); 103 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); 104 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); 262 enum ipset_adt adt, struct ip_set_adt_opt *opt) 266 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 268 if (!ip_set_get_ip6_port(skb, opt 90 hash_ipportip4_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 260 hash_ipportip6_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 D | ip_set_hash_mac.c | 74 enum ipset_adt adt, struct ip_set_adt_opt *opt) 78 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 84 if (opt->flags & IPSET_DIM_ONE_SRC) 91 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); 72 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
|
H A D | ip_set_hash_ip.c | 82 enum ipset_adt adt, struct ip_set_adt_opt *opt) 87 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 90 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &ip); 96 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); 218 enum ipset_adt adt, struct ip_set_adt_opt *opt) 223 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 225 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); 230 return adtfn(set, &e, &ext, &opt->ext, opt 80 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 216 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 D | ip_set_hash_ipmark.c | 82 enum ipset_adt adt, struct ip_set_adt_opt *opt) 87 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 92 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); 93 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); 217 enum ipset_adt adt, struct ip_set_adt_opt *opt) 222 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); 227 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); 228 return adtfn(set, &e, &ext, &opt->ext, opt 80 hash_ipmark4_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 215 hash_ipmark6_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...] |
/linux-master/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | main.h | 242 struct tc_root_qopt_offload *opt); 244 struct tc_red_qopt_offload *opt); 246 struct tc_mq_qopt_offload *opt); 248 struct tc_gred_qopt_offload *opt); 250 struct flow_block_offload *opt);
|
/linux-master/sound/core/seq/oss/ |
H A D | seq_oss_rw.c | 23 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 83 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) argument 135 err = insert_queue(dp, &rec, opt); 152 insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) argument 174 rc = snd_seq_kernel_client_enqueue(dp->cseq, &event, opt,
|
/linux-master/net/sched/ |
H A D | sch_red.c | 188 struct tc_red_qopt_offload opt = { local 197 opt.command = TC_RED_REPLACE; 198 opt.set.min = q->parms.qth_min >> q->parms.Wlog; 199 opt.set.max = q->parms.qth_max >> q->parms.Wlog; 200 opt.set.probability = q->parms.max_P; 201 opt.set.limit = q->limit; 202 opt.set.is_ecn = red_use_ecn(q); 203 opt.set.is_harddrop = red_use_harddrop(q); 204 opt.set.is_nodrop = red_use_nodrop(q); 205 opt 335 red_init(struct Qdisc *sch, struct nlattr *opt, struct netlink_ext_ack *extack) argument 369 red_change(struct Qdisc *sch, struct nlattr *opt, struct netlink_ext_ack *extack) argument 413 struct tc_red_qopt opt = { local [all...] |
H A D | act_skbmod.c | 244 struct tc_skbmod opt; local 247 memset(&opt, 0, sizeof(opt)); 248 opt.index = d->tcf_index; 249 opt.refcnt = refcount_read(&d->tcf_refcnt) - ref, 250 opt.bindcnt = atomic_read(&d->tcf_bindcnt) - bind; 252 opt.action = d->tcf_action; 255 opt.flags = p->flags; 256 if (nla_put(skb, TCA_SKBMOD_PARMS, sizeof(opt), &opt)) [all...] |
H A D | sch_skbprio.c | 169 static int skbprio_change(struct Qdisc *sch, struct nlattr *opt, argument 172 struct tc_skbprio_qopt *ctl = nla_data(opt); 174 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) 181 static int skbprio_init(struct Qdisc *sch, struct nlattr *opt, argument 195 if (!opt) 198 return skbprio_change(sch, opt, extack); 203 struct tc_skbprio_qopt opt; local 205 opt.limit = READ_ONCE(sch->limit); 207 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) [all...] |
H A D | sch_sfq.c | 631 static int sfq_change(struct Qdisc *sch, struct nlattr *opt) argument 634 struct tc_sfq_qopt *ctl = nla_data(opt); 641 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) 643 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1))) 644 ctl_v1 = nla_data(opt); 739 static int sfq_init(struct Qdisc *sch, struct nlattr *opt, argument 769 if (opt) { 770 int err = sfq_change(sch, opt); 800 struct tc_sfq_qopt_v1 opt; local 803 memset(&opt, [all...] |
H A D | sch_cbs.c | 277 const struct tc_cbs_qopt *opt, 292 cbs.hicredit = opt->hicredit; 293 cbs.locredit = opt->locredit; 294 cbs.idleslope = opt->idleslope; 295 cbs.sendslope = opt->sendslope; 361 static int cbs_change(struct Qdisc *sch, struct nlattr *opt, argument 370 err = nla_parse_nested_deprecated(tb, TCA_CBS_MAX, opt, cbs_policy, 401 static int cbs_init(struct Qdisc *sch, struct nlattr *opt, argument 407 if (!opt) { 430 return cbs_change(sch, opt, extac 276 cbs_enable_offload(struct net_device *dev, struct cbs_sched_data *q, const struct tc_cbs_qopt *opt, struct netlink_ext_ack *extack) argument 455 struct tc_cbs_qopt opt = { }; local [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bind6_prog.c | 87 static __inline int misc_opts(struct bpf_sock_addr *ctx, int opt) argument 92 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)) || 95 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &new, sizeof(new))) 97 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &tmp, sizeof(tmp)) || 100 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)))
|
H A D | bind4_prog.c | 81 static __inline int misc_opts(struct bpf_sock_addr *ctx, int opt) argument 86 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)) || 89 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &new, sizeof(new))) 91 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &tmp, sizeof(tmp)) || 94 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)))
|
/linux-master/net/dccp/ |
H A D | ipv6.c | 75 static int dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, argument 219 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); 232 struct ipv6_txoptions *opt; local 239 opt = ireq->ipv6_opt; 240 if (!opt) 241 opt = rcu_dereference(np->opt); 242 err = ip6_xmit(sk, skb, &fl6, READ_ONCE(sk->sk_mark), opt, 424 struct ipv6_txoptions *opt; local 450 newnp->opt 828 struct ipv6_txoptions *opt; local [all...] |
/linux-master/net/l2tp/ |
H A D | l2tp_ip6.c | 495 struct ipv6_txoptions *opt = NULL; local 563 opt = &opt_space; 564 memset(opt, 0, sizeof(struct ipv6_txoptions)); 565 opt->tot_len = sizeof(struct ipv6_txoptions); 566 ipc6.opt = opt; 578 if (!(opt->opt_nflen | opt->opt_flen)) 579 opt = NULL; 582 if (!opt) { [all...] |
/linux-master/tools/perf/scripts/python/ |
H A D | compaction-times.py | 274 for i, opt in enumerate(sys.argv[1:]): 275 if opt[0] == "-": 276 if opt == "-h": 279 elif opt == "-p": 281 elif opt == "-pv": 283 elif opt == '-u': 285 elif opt == "-t": 287 elif opt == "-m": 289 elif opt == "-fs": 291 elif opt [all...] |
/linux-master/net/nfc/nci/ |
H A D | core.c | 99 void (*req)(struct nci_dev *ndev, const void *opt), 100 const void *opt, __u32 timeout) 108 req(ndev, opt); 143 const void *opt), 144 const void *opt, __u32 timeout) 154 rc = __nci_request(ndev, req, opt, timeout); 162 static void nci_reset_req(struct nci_dev *ndev, const void *opt) argument 170 static void nci_init_req(struct nci_dev *ndev, const void *opt) argument 174 if (opt) 177 nci_send_cmd(ndev, NCI_OP_CORE_INIT_CMD, plen, opt); 98 __nci_request(struct nci_dev *ndev, void (*req)(struct nci_dev *ndev, const void *opt), const void *opt, __u32 timeout) argument 141 nci_request(struct nci_dev *ndev, void (*req)(struct nci_dev *ndev, const void *opt), const void *opt, __u32 timeout) argument 180 nci_init_complete_req(struct nci_dev *ndev, const void *opt) argument 222 nci_set_config_req(struct nci_dev *ndev, const void *opt) argument 242 nci_rf_discover_req(struct nci_dev *ndev, const void *opt) argument 307 nci_rf_discover_select_req(struct nci_dev *ndev, const void *opt) argument 333 nci_rf_deactivate_req(struct nci_dev *ndev, const void *opt) argument 349 nci_generic_req(struct nci_dev *ndev, const void *opt) argument 402 nci_send_data_req(struct nci_dev *ndev, const void *opt) argument 516 const void *opt = NULL; local 658 nci_nfcee_discover_req(struct nci_dev *ndev, const void *opt) argument 670 unsigned long opt = action; local 677 nci_nfcee_mode_set_req(struct nci_dev *ndev, const void *opt) argument 697 nci_core_conn_create_req(struct nci_dev *ndev, const void *opt) argument 743 nci_core_conn_close_req(struct nci_dev *ndev, const void *opt) argument 752 unsigned long opt = conn_id; local [all...] |
/linux-master/net/bridge/ |
H A D | br.c | 258 * @opt: id of the option to change 265 int br_boolopt_toggle(struct net_bridge *br, enum br_boolopt_id opt, bool on, argument 270 switch (opt) { 289 int br_boolopt_get(const struct net_bridge *br, enum br_boolopt_id opt) argument 291 switch (opt) { 343 void br_opt_toggle(struct net_bridge *br, enum net_bridge_opts opt, bool on) argument 345 bool cur = !!br_opt_get(br, opt); 348 opt, cur, on); 354 set_bit(opt, &br->options); 356 clear_bit(opt, [all...] |
/linux-master/samples/bpf/ |
H A D | ibumad_user.c | 89 int opt, err = -1; local 91 while ((opt = getopt_long(argc, argv, "hd:rSw", 93 switch (opt) {
|
/linux-master/tools/testing/selftests/timers/ |
H A D | inconsistency-check.c | 153 int clockid, opt; local 160 while ((opt = getopt(argc, argv, "t:c:")) != -1) { 161 switch (opt) {
|
H A D | clocksource-switch.c | 125 int count, i, status, opt; local 131 while ((opt = getopt(argc, argv, "st:")) != -1) { 132 switch (opt) {
|