/net/sctp/ |
D | sysctl.c | 46 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, 48 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, 50 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer, 52 static int proc_sctp_do_udp_port(struct ctl_table *ctl, int write, void *buffer, 54 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, 56 static int proc_sctp_do_auth(struct ctl_table *ctl, int write, 58 static int proc_sctp_do_probe_interval(struct ctl_table *ctl, int write, 380 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, in proc_sctp_do_hmac_alg() argument 425 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, in proc_sctp_do_rto_min() argument 429 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min() [all …]
|
/net/sched/ |
D | sch_choke.c | 341 const struct tc_red_qopt *ctl; in choke_change() local 362 ctl = nla_data(tb[TCA_CHOKE_PARMS]); in choke_change() 364 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Scell_log, stab)) in choke_change() 367 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change() 370 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change() 409 q->flags = ctl->flags; in choke_change() 410 q->limit = ctl->limit; in choke_change() 412 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change() 413 ctl->Plog, ctl->Scell_log, in choke_change()
|
D | sch_red.c | 240 struct tc_red_qopt *ctl; in __red_change() local 253 ctl = nla_data(tb[TCA_RED_PARMS]); in __red_change() 255 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, in __red_change() 256 ctl->Scell_log, stab)) in __red_change() 259 err = red_get_flags(ctl->flags, TC_RED_HISTORIC_FLAGS, in __red_change() 265 if (ctl->limit > 0) { in __red_change() 266 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit, in __red_change() 284 q->limit = ctl->limit; in __red_change() 292 ctl->qth_min, ctl->qth_max, ctl->Wlog, in __red_change() 293 ctl->Plog, ctl->Scell_log, in __red_change() [all …]
|
D | sch_gred.c | 475 struct tc_gred_qopt *ctl, int prio, in gred_change_vq() argument 483 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Scell_log, stab)) { in gred_change_vq() 498 if (ctl->limit > sch->limit) in gred_change_vq() 501 q->limit = ctl->limit; in gred_change_vq() 507 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, in gred_change_vq() 508 ctl->Scell_log, stab, max_P); in gred_change_vq() 639 struct tc_gred_qopt *ctl; in gred_change() local 669 ctl = nla_data(tb[TCA_GRED_PARMS]); in gred_change() 672 if (ctl->DP >= table->DPs) { in gred_change() 678 err = gred_vqs_validate(table, ctl->DP, tb[TCA_GRED_VQ_LIST], in gred_change() [all …]
|
D | sch_sfb.c | 496 const struct tc_sfb_qopt *ctl = &sfb_default_ops; in sfb_change() local 509 ctl = nla_data(tb[TCA_SFB_PARMS]); in sfb_change() 512 limit = ctl->limit; in sfb_change() 528 q->rehash_interval = msecs_to_jiffies(ctl->rehash_interval); in sfb_change() 529 q->warmup_time = msecs_to_jiffies(ctl->warmup_time); in sfb_change() 532 q->increment = ctl->increment; in sfb_change() 533 q->decrement = ctl->decrement; in sfb_change() 534 q->max = ctl->max; in sfb_change() 535 q->bin_size = ctl->bin_size; in sfb_change() 536 q->penalty_rate = ctl->penalty_rate; in sfb_change() [all …]
|
D | sch_sfq.c | 626 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local 633 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change() 637 if (ctl->divisor && in sfq_change() 638 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change() 642 if (ctl->quantum) { in sfq_change() 643 unsigned int scaled = SFQ_ALLOT_SIZE(ctl->quantum); in sfq_change() 658 if (ctl->quantum) { in sfq_change() 659 q->quantum = ctl->quantum; in sfq_change() 662 q->perturb_period = ctl->perturb_period * HZ; in sfq_change() 663 if (ctl->flows) in sfq_change() [all …]
|
D | sch_plug.c | 136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() local 138 if (nla_len(opt) < sizeof(*ctl)) in plug_init() 141 q->limit = ctl->limit; in plug_init()
|
D | sch_fifo.c | 110 struct tc_fifo_qopt *ctl = nla_data(opt); in __fifo_init() local 112 if (nla_len(opt) < sizeof(*ctl)) in __fifo_init() 115 sch->limit = ctl->limit; in __fifo_init()
|
D | sch_skbprio.c | 170 struct tc_skbprio_qopt *ctl = nla_data(opt); in skbprio_change() local 172 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) in skbprio_change() 175 sch->limit = ctl->limit; in skbprio_change()
|
/net/unix/ |
D | sysctl_net_unix.c | 38 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register() 39 if (net->unx.ctl == NULL) in unix_sysctl_register() 54 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister() 55 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
|
/net/ipv6/ |
D | ndisc.c | 1852 static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, in ndisc_warn_deprecated_sysctl() argument 1861 dev_name, ctl->procname, in ndisc_warn_deprecated_sysctl() 1862 dev_name, ctl->procname); in ndisc_warn_deprecated_sysctl() 1867 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void *buffer, in ndisc_ifinfo_sysctl_change() argument 1870 struct net_device *dev = ctl->extra1; in ndisc_ifinfo_sysctl_change() 1874 if ((strcmp(ctl->procname, "retrans_time") == 0) || in ndisc_ifinfo_sysctl_change() 1875 (strcmp(ctl->procname, "base_reachable_time") == 0)) in ndisc_ifinfo_sysctl_change() 1876 ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default"); in ndisc_ifinfo_sysctl_change() 1878 if (strcmp(ctl->procname, "retrans_time") == 0) in ndisc_ifinfo_sysctl_change() 1879 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change() [all …]
|
D | addrconf.c | 6220 static int addrconf_sysctl_forward(struct ctl_table *ctl, int write, in addrconf_sysctl_forward() argument 6223 int *valp = ctl->data; in addrconf_sysctl_forward() 6233 lctl = *ctl; in addrconf_sysctl_forward() 6239 ret = addrconf_fixup_forwarding(ctl, valp, val); in addrconf_sysctl_forward() 6245 static int addrconf_sysctl_mtu(struct ctl_table *ctl, int write, in addrconf_sysctl_mtu() argument 6248 struct inet6_dev *idev = ctl->extra1; in addrconf_sysctl_mtu() 6252 lctl = *ctl; in addrconf_sysctl_mtu() 6259 static int addrconf_sysctl_accept_ra_min_lft(struct ctl_table *ctl, int write, in addrconf_sysctl_accept_ra_min_lft() argument 6262 struct ctl_table tmp = *ctl; in addrconf_sysctl_accept_ra_min_lft() 6264 u16 *data = ctl->data; in addrconf_sysctl_accept_ra_min_lft() [all …]
|
D | route.c | 6322 static int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write, in ipv6_sysctl_rtcache_flush() argument 6331 net = (struct net *)ctl->extra1; in ipv6_sysctl_rtcache_flush() 6333 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
|
/net/core/ |
D | neighbour.c | 3402 static int proc_unres_qlen(struct ctl_table *ctl, int write, in proc_unres_qlen() argument 3406 struct ctl_table tmp = *ctl; in proc_unres_qlen() 3412 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen() 3416 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen() 3449 static void neigh_proc_update(struct ctl_table *ctl, int write) in neigh_proc_update() argument 3451 struct net_device *dev = ctl->extra1; in neigh_proc_update() 3452 struct neigh_parms *p = ctl->extra2; in neigh_proc_update() 3454 int index = (int *) ctl->data - p->data; in neigh_proc_update() 3466 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write, in neigh_proc_dointvec_zero_intmax() argument 3470 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_zero_intmax() [all …]
|
/net/ipv4/ |
D | devinet.c | 2370 static int devinet_conf_proc(struct ctl_table *ctl, int write, in devinet_conf_proc() argument 2373 int old_value = *(int *)ctl->data; in devinet_conf_proc() 2374 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc() 2375 int new_value = *(int *)ctl->data; in devinet_conf_proc() 2378 struct ipv4_devconf *cnf = ctl->extra1; in devinet_conf_proc() 2379 struct net *net = ctl->extra2; in devinet_conf_proc() 2380 int i = (int *)ctl->data - cnf->data; in devinet_conf_proc() 2422 static int devinet_sysctl_forward(struct ctl_table *ctl, int write, in devinet_sysctl_forward() argument 2425 int *valp = ctl->data; in devinet_sysctl_forward() 2428 struct net *net = ctl->extra2; in devinet_sysctl_forward() [all …]
|
D | sysctl_net_ipv4.c | 223 static int proc_tcp_congestion_control(struct ctl_table *ctl, int write, in proc_tcp_congestion_control() argument 226 struct net *net = container_of(ctl->data, struct net, in proc_tcp_congestion_control() 243 static int proc_tcp_available_congestion_control(struct ctl_table *ctl, in proc_tcp_available_congestion_control() argument 259 static int proc_allowed_congestion_control(struct ctl_table *ctl, in proc_allowed_congestion_control() argument 382 static int proc_tcp_available_ulp(struct ctl_table *ctl, in proc_tcp_available_ulp() argument
|
/net/rds/ |
D | tcp.c | 64 static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write, 668 static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write, in rds_tcp_skbuf_handler() argument 674 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler() 677 *(int *)(ctl->extra1)); in rds_tcp_skbuf_handler()
|
/net/mpls/ |
D | af_mpls.c | 1365 static int mpls_conf_proc(struct ctl_table *ctl, int write, in mpls_conf_proc() argument 1368 int oval = *(int *)ctl->data; in mpls_conf_proc() 1369 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in mpls_conf_proc() 1372 struct mpls_dev *mdev = ctl->extra1; in mpls_conf_proc() 1373 int i = (int *)ctl->data - (int *)mdev; in mpls_conf_proc() 1374 struct net *net = ctl->extra2; in mpls_conf_proc() 1375 int val = *(int *)ctl->data; in mpls_conf_proc() 2701 net->mpls.ctl = register_net_sysctl(net, "net/mpls", table); in mpls_net_init() 2702 if (net->mpls.ctl == NULL) { in mpls_net_init() 2717 table = net->mpls.ctl->ctl_table_arg; in mpls_net_exit() [all …]
|
/net/bridge/ |
D | br_netfilter_hooks.c | 1054 int brnf_sysctl_call_tables(struct ctl_table *ctl, int write, in brnf_sysctl_call_tables() argument 1059 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables() 1061 if (write && *(int *)(ctl->data)) in brnf_sysctl_call_tables() 1062 *(int *)(ctl->data) = 1; in brnf_sysctl_call_tables()
|
/net/ |
D | socket.c | 2379 unsigned char ctl[sizeof(struct cmsghdr) + 20] in ____sys_sendmsg() local 2382 unsigned char *ctl_buf = ctl; in ____sys_sendmsg() 2394 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, in ____sys_sendmsg() 2395 sizeof(ctl)); in ____sys_sendmsg() 2403 if (ctl_len > sizeof(ctl)) { in ____sys_sendmsg() 2444 if (ctl_buf != ctl) in ____sys_sendmsg()
|
/net/can/j1939/ |
D | transport.c | 589 bool ctl, in j1939_tp_tx_dat_new() argument 615 if (ctl) { in j1939_tp_tx_dat_new()
|