/net/netfilter/ |
D | xt_hashlimit.c | 122 struct hashlimit_cfg3 cfg; /* config */ member 142 struct hashlimit_cfg1 *cfg = (struct hashlimit_cfg1 *)from; in cfg_copy() local 144 to->mode = cfg->mode; in cfg_copy() 145 to->avg = cfg->avg; in cfg_copy() 146 to->burst = cfg->burst; in cfg_copy() 147 to->size = cfg->size; in cfg_copy() 148 to->max = cfg->max; in cfg_copy() 149 to->gc_interval = cfg->gc_interval; in cfg_copy() 150 to->expire = cfg->expire; in cfg_copy() 151 to->srcmask = cfg->srcmask; in cfg_copy() [all …]
|
D | xt_RATEEST.c | 115 } cfg; in xt_rateest_tg_checkentry() local 152 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est)); in xt_rateest_tg_checkentry() 153 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry() 154 cfg.est.interval = info->interval; in xt_rateest_tg_checkentry() 155 cfg.est.ewma_log = info->ewma_log; in xt_rateest_tg_checkentry() 158 &est->lock, NULL, &cfg.opt); in xt_rateest_tg_checkentry()
|
/net/ipv4/ |
D | fib_frontend.c | 479 struct fib_config *cfg) in rtentry_to_fib_config() argument 484 memset(cfg, 0, sizeof(*cfg)); in rtentry_to_fib_config() 485 cfg->fc_nlinfo.nl_net = net; in rtentry_to_fib_config() 514 cfg->fc_dst_len = plen; in rtentry_to_fib_config() 515 cfg->fc_dst = addr; in rtentry_to_fib_config() 518 cfg->fc_nlflags = NLM_F_CREATE; in rtentry_to_fib_config() 519 cfg->fc_protocol = RTPROT_BOOT; in rtentry_to_fib_config() 523 cfg->fc_priority = rt->rt_metric - 1; in rtentry_to_fib_config() 526 cfg->fc_scope = RT_SCOPE_HOST; in rtentry_to_fib_config() 527 cfg->fc_type = RTN_UNREACHABLE; in rtentry_to_fib_config() [all …]
|
D | fib_semantics.c | 375 const struct fib_config *cfg) in fib_find_info_nh() argument 381 hash = fib_info_hashfn_1(fib_devindex_hashfn(cfg->fc_nh_id), in fib_find_info_nh() 382 cfg->fc_protocol, cfg->fc_scope, in fib_find_info_nh() 383 (__force u32)cfg->fc_prefsrc, in fib_find_info_nh() 384 cfg->fc_priority); in fib_find_info_nh() 391 if (!fi->nh || fi->nh->id != cfg->fc_nh_id) in fib_find_info_nh() 393 if (cfg->fc_protocol == fi->fib_protocol && in fib_find_info_nh() 394 cfg->fc_scope == fi->fib_scope && in fib_find_info_nh() 395 cfg->fc_prefsrc == fi->fib_prefsrc && in fib_find_info_nh() 396 cfg->fc_priority == fi->fib_priority && in fib_find_info_nh() [all …]
|
D | nexthop.c | 571 int fib6_check_nexthop(struct nexthop *nh, struct fib6_config *cfg, in fib6_check_nexthop() argument 582 if (cfg && check_src_addr(&cfg->fc_src, extack) < 0) in fib6_check_nexthop() 1008 struct nh_config *cfg, struct netlink_ext_ack *extack) in insert_nexthop() argument 1012 bool replace = !!(cfg->nlflags & NLM_F_REPLACE); in insert_nexthop() 1013 bool create = !!(cfg->nlflags & NLM_F_CREATE); in insert_nexthop() 1058 nexthop_notify(RTM_NEWNEXTHOP, new_nh, &cfg->nlinfo); in insert_nexthop() 1060 nexthop_replace_notify(net, new_nh, &cfg->nlinfo); in insert_nexthop() 1103 struct nh_config *cfg) in nexthop_create_group() argument 1105 struct nlattr *grps_attr = cfg->nh_grp; in nexthop_create_group() 1154 if (cfg->nh_grp_type == NEXTHOP_GRP_TYPE_MPATH) { in nexthop_create_group() [all …]
|
D | udp_tunnel.c | 13 int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg, in udp_sock_create4() argument 24 if (cfg->bind_ifindex) { in udp_sock_create4() 26 (void *)&cfg->bind_ifindex, in udp_sock_create4() 27 sizeof(cfg->bind_ifindex)); in udp_sock_create4() 33 udp_addr.sin_addr = cfg->local_ip; in udp_sock_create4() 34 udp_addr.sin_port = cfg->local_udp_port; in udp_sock_create4() 40 if (cfg->peer_udp_port) { in udp_sock_create4() 42 udp_addr.sin_addr = cfg->peer_ip; in udp_sock_create4() 43 udp_addr.sin_port = cfg->peer_udp_port; in udp_sock_create4() 50 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4() [all …]
|
D | fou.c | 503 static bool fou_cfg_cmp(struct fou *fou, struct fou_cfg *cfg) in fou_cfg_cmp() argument 506 struct udp_port_cfg *udp_cfg = &cfg->udp_config; in fou_cfg_cmp() 534 struct fou_cfg *cfg) in fou_add_to_port_list() argument 541 if (fou_cfg_cmp(fout, cfg)) { in fou_add_to_port_list() 563 static int fou_create(struct net *net, struct fou_cfg *cfg, in fou_create() argument 573 err = udp_sock_create(net, &cfg->udp_config, &sock); in fou_create() 586 fou->port = cfg->udp_config.local_udp_port; in fou_create() 587 fou->family = cfg->udp_config.family; in fou_create() 588 fou->flags = cfg->flags; in fou_create() 589 fou->type = cfg->type; in fou_create() [all …]
|
D | fib_trie.c | 1121 struct fib_config *cfg, struct netlink_ext_ack *extack) in fib_table_insert() argument 1129 u8 plen = cfg->fc_dst_len; in fib_table_insert() 1131 u8 tos = cfg->fc_tos; in fib_table_insert() 1135 key = ntohl(cfg->fc_dst); in fib_table_insert() 1142 fi = fib_create_info(cfg, extack); in fib_table_insert() 1166 if (cfg->fc_nlflags & NLM_F_EXCL) in fib_table_insert() 1185 if (fa->fa_type == cfg->fc_type && in fib_table_insert() 1192 if (cfg->fc_nlflags & NLM_F_REPLACE) { in fib_table_insert() 1211 new_fa->fa_type = cfg->fc_type; in fib_table_insert() 1226 tb->tb_id, &cfg->fc_nlinfo, nlflags); in fib_table_insert() [all …]
|
D | fib_lookup.h | 33 struct fib_info *fib_create_info(struct fib_config *cfg, 35 int fib_nh_match(struct fib_config *cfg, struct fib_info *fi, 37 bool fib_metrics_match(struct fib_config *cfg, struct fib_info *fi);
|
/net/sched/ |
D | act_bpf.c | 183 static int tcf_bpf_init_from_ops(struct nlattr **tb, struct tcf_bpf_cfg *cfg) in tcf_bpf_init_from_ops() argument 212 cfg->bpf_ops = bpf_ops; in tcf_bpf_init_from_ops() 213 cfg->bpf_num_ops = bpf_num_ops; in tcf_bpf_init_from_ops() 214 cfg->filter = fp; in tcf_bpf_init_from_ops() 215 cfg->is_ebpf = false; in tcf_bpf_init_from_ops() 220 static int tcf_bpf_init_from_efd(struct nlattr **tb, struct tcf_bpf_cfg *cfg) in tcf_bpf_init_from_efd() argument 240 cfg->bpf_name = name; in tcf_bpf_init_from_efd() 241 cfg->filter = fp; in tcf_bpf_init_from_efd() 242 cfg->is_ebpf = true; in tcf_bpf_init_from_efd() 247 static void tcf_bpf_cfg_cleanup(const struct tcf_bpf_cfg *cfg) in tcf_bpf_cfg_cleanup() argument [all …]
|
/net/ipv6/ |
D | ip6_udp_tunnel.c | 16 int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg, in udp_sock_create6() argument 27 if (cfg->ipv6_v6only) { in udp_sock_create6() 35 if (cfg->bind_ifindex) { in udp_sock_create6() 37 (void *)&cfg->bind_ifindex, in udp_sock_create6() 38 sizeof(cfg->bind_ifindex)); in udp_sock_create6() 44 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, in udp_sock_create6() 46 udp6_addr.sin6_port = cfg->local_udp_port; in udp_sock_create6() 52 if (cfg->peer_udp_port) { in udp_sock_create6() 55 memcpy(&udp6_addr.sin6_addr, &cfg->peer_ip6, in udp_sock_create6() 57 udp6_addr.sin6_port = cfg->peer_udp_port; in udp_sock_create6() [all …]
|
D | route.c | 3238 static int ip6_nh_lookup_table(struct net *net, struct fib6_config *cfg, in ip6_nh_lookup_table() argument 3243 .flowi6_oif = cfg->fc_ifindex, in ip6_nh_lookup_table() 3245 .saddr = cfg->fc_prefsrc, in ip6_nh_lookup_table() 3254 if (!ipv6_addr_any(&cfg->fc_prefsrc)) in ip6_nh_lookup_table() 3259 err = fib6_table_lookup(net, table, cfg->fc_ifindex, &fl6, res, flags); in ip6_nh_lookup_table() 3261 fib6_select_path(net, res, &fl6, cfg->fc_ifindex, in ip6_nh_lookup_table() 3262 cfg->fc_ifindex != 0, NULL, flags); in ip6_nh_lookup_table() 3268 struct fib6_config *cfg, in ip6_route_check_nh_onlink() argument 3273 const struct in6_addr *gw_addr = &cfg->fc_gateway; in ip6_route_check_nh_onlink() 3277 err = ip6_nh_lookup_table(net, cfg, gw_addr, tbid, 0, &res); in ip6_route_check_nh_onlink() [all …]
|
D | addrconf.c | 1064 ipv6_add_addr(struct inet6_dev *idev, struct ifa6_config *cfg, in ipv6_add_addr() argument 1068 int addr_type = ipv6_addr_type(cfg->pfx); in ipv6_add_addr() 1076 !(cfg->ifa_flags & IFA_F_MCAUTOJOIN)) || in ipv6_add_addr() 1097 .i6vi_addr = *cfg->pfx, in ipv6_add_addr() 1114 f6i = addrconf_f6i_alloc(net, idev, cfg->pfx, false, gfp_flags); in ipv6_add_addr() 1123 ifa->addr = *cfg->pfx; in ipv6_add_addr() 1124 if (cfg->peer_pfx) in ipv6_add_addr() 1125 ifa->peer_addr = *cfg->peer_pfx; in ipv6_add_addr() 1130 ifa->scope = cfg->scope; in ipv6_add_addr() 1131 ifa->prefix_len = cfg->plen; in ipv6_add_addr() [all …]
|
/net/l2tp/ |
D | l2tp_netlink.c | 167 struct l2tp_tunnel_cfg cfg = { 0, }; in l2tp_nl_cmd_tunnel_create() local 193 cfg.encap = nla_get_u16(info->attrs[L2TP_ATTR_ENCAP_TYPE]); in l2tp_nl_cmd_tunnel_create() 202 cfg.local_ip6 = nla_data( in l2tp_nl_cmd_tunnel_create() 204 cfg.peer_ip6 = nla_data( in l2tp_nl_cmd_tunnel_create() 210 cfg.local_ip.s_addr = nla_get_in_addr( in l2tp_nl_cmd_tunnel_create() 212 cfg.peer_ip.s_addr = nla_get_in_addr( in l2tp_nl_cmd_tunnel_create() 219 cfg.local_udp_port = nla_get_u16(info->attrs[L2TP_ATTR_UDP_SPORT]); in l2tp_nl_cmd_tunnel_create() 221 cfg.peer_udp_port = nla_get_u16(info->attrs[L2TP_ATTR_UDP_DPORT]); in l2tp_nl_cmd_tunnel_create() 222 cfg.use_udp_checksums = nla_get_flag( in l2tp_nl_cmd_tunnel_create() 226 cfg.udp6_zero_tx_checksums = nla_get_flag( in l2tp_nl_cmd_tunnel_create() [all …]
|
D | l2tp_core.c | 1295 struct l2tp_tunnel_cfg *cfg, in l2tp_tunnel_sock_create() argument 1302 switch (cfg->encap) { in l2tp_tunnel_sock_create() 1307 if (cfg->local_ip6 && cfg->peer_ip6) { in l2tp_tunnel_sock_create() 1309 memcpy(&udp_conf.local_ip6, cfg->local_ip6, in l2tp_tunnel_sock_create() 1311 memcpy(&udp_conf.peer_ip6, cfg->peer_ip6, in l2tp_tunnel_sock_create() 1314 ! cfg->udp6_zero_tx_checksums; in l2tp_tunnel_sock_create() 1316 ! cfg->udp6_zero_rx_checksums; in l2tp_tunnel_sock_create() 1321 udp_conf.local_ip = cfg->local_ip; in l2tp_tunnel_sock_create() 1322 udp_conf.peer_ip = cfg->peer_ip; in l2tp_tunnel_sock_create() 1323 udp_conf.use_udp_checksums = cfg->use_udp_checksums; in l2tp_tunnel_sock_create() [all …]
|
D | l2tp_core.h | 183 struct l2tp_session_cfg *cfg); 205 u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, 208 struct l2tp_tunnel_cfg *cfg); 214 struct l2tp_session_cfg *cfg);
|
D | l2tp_eth.c | 259 struct l2tp_session_cfg *cfg) in l2tp_eth_create() argument 269 if (cfg->ifname) { in l2tp_eth_create() 270 strlcpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create() 278 peer_session_id, cfg); in l2tp_eth_create()
|
/net/mpls/ |
D | af_mpls.c | 765 static int mpls_nh_build_from_cfg(struct mpls_route_config *cfg, in mpls_nh_build_from_cfg() argument 768 struct net *net = cfg->rc_nlinfo.nl_net; in mpls_nh_build_from_cfg() 776 nh->nh_labels = cfg->rc_output_labels; in mpls_nh_build_from_cfg() 778 nh->nh_label[i] = cfg->rc_output_label[i]; in mpls_nh_build_from_cfg() 780 nh->nh_via_table = cfg->rc_via_table; in mpls_nh_build_from_cfg() 781 memcpy(__mpls_nh_via(rt, nh), cfg->rc_via, cfg->rc_via_alen); in mpls_nh_build_from_cfg() 782 nh->nh_via_alen = cfg->rc_via_alen; in mpls_nh_build_from_cfg() 784 err = mpls_nh_assign_dev(net, rt, nh, cfg->rc_ifindex); in mpls_nh_build_from_cfg() 882 static int mpls_nh_build_multi(struct mpls_route_config *cfg, in mpls_nh_build_multi() argument 886 struct rtnexthop *rtnh = cfg->rc_mp; in mpls_nh_build_multi() [all …]
|
/net/caif/ |
D | caif_dev.c | 51 struct cfcnfg *cfg; member 62 return caifn->cfg; in get_cfcnfg() 319 struct cfcnfg *cfg = get_cfcnfg(dev_net(dev)); in caif_enroll_dev() local 347 res = cfcnfg_add_phy_layer(cfg, in caif_enroll_dev() 368 struct cfcnfg *cfg; in caif_device_notify() local 374 cfg = get_cfcnfg(dev_net(dev)); in caif_device_notify() 415 cfcnfg_set_phy_state(cfg, &caifd->layer, true); in caif_device_notify() 429 cfcnfg_set_phy_state(cfg, &caifd->layer, false); in caif_device_notify() 480 cfcnfg_del_phy_layer(cfg, &caifd->layer) != 0) { in caif_device_notify() 512 caifn->cfg = cfcnfg_create(); in caif_init_net() [all …]
|
D | cfcnfg.c | 117 void cfcnfg_remove(struct cfcnfg *cfg) in cfcnfg_remove() argument 120 if (cfg) { in cfcnfg_remove() 123 kfree(cfg->mux); in cfcnfg_remove() 124 cfctrl_remove(cfg->ctrl); in cfcnfg_remove() 125 kfree(cfg); in cfcnfg_remove() 182 struct cfcnfg *cfg = get_cfcnfg(net); in caif_disconnect_client() local 185 cfctrl_cancel_req(cfg->ctrl, adap_layer); in caif_disconnect_client() 189 servl = cfmuxl_remove_uplayer(cfg->mux, channel_id); in caif_disconnect_client() 190 cfctrl_linkdown_req(cfg->ctrl, channel_id, adap_layer); in caif_disconnect_client() 308 struct cfcnfg *cfg = get_cfcnfg(net); in caif_connect_client() local [all …]
|
/net/core/ |
D | dev_ioctl.c | 160 struct hwtstamp_config cfg; in net_hwtstamp_validate() local 166 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in net_hwtstamp_validate() 169 if (cfg.flags) /* reserved for future extensions */ in net_hwtstamp_validate() 172 tx_type = cfg.tx_type; in net_hwtstamp_validate() 173 rx_filter = cfg.rx_filter; in net_hwtstamp_validate()
|
/net/openvswitch/ |
D | vport-vxlan.c | 25 __be16 dst_port = vxlan->cfg.dst_port; in vxlan_get_options() 30 if (vxlan->cfg.flags & VXLAN_F_GBP) { in vxlan_get_options() 37 if (vxlan->cfg.flags & VXLAN_F_GBP && in vxlan_get_options()
|
/net/netlink/ |
D | af_netlink.c | 2023 struct netlink_kernel_cfg *cfg) in __netlink_kernel_create() argument 2029 struct mutex *cb_mutex = cfg ? cfg->cb_mutex : NULL; in __netlink_kernel_create() 2045 if (!cfg || cfg->groups < 32) in __netlink_kernel_create() 2048 groups = cfg->groups; in __netlink_kernel_create() 2055 if (cfg && cfg->input) in __netlink_kernel_create() 2056 nlk_sk(sk)->netlink_rcv = cfg->input; in __netlink_kernel_create() 2070 if (cfg) { in __netlink_kernel_create() 2071 nl_table[unit].bind = cfg->bind; in __netlink_kernel_create() 2072 nl_table[unit].unbind = cfg->unbind; in __netlink_kernel_create() 2073 nl_table[unit].flags = cfg->flags; in __netlink_kernel_create() [all …]
|
/net/wireless/ |
D | nl80211.c | 6932 struct mesh_config *cfg, in nl80211_parse_mesh_config() argument 6939 #define FILL_IN_MESH_PARAM_IF_SET(tb, cfg, param, mask, attr, fn) \ in nl80211_parse_mesh_config() argument 6942 cfg->param = fn(tb[attr]); \ in nl80211_parse_mesh_config() 6957 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshRetryTimeout, mask, in nl80211_parse_mesh_config() 6959 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConfirmTimeout, mask, in nl80211_parse_mesh_config() 6962 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHoldingTimeout, mask, in nl80211_parse_mesh_config() 6965 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxPeerLinks, mask, in nl80211_parse_mesh_config() 6968 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxRetries, mask, in nl80211_parse_mesh_config() 6970 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshTTL, mask, in nl80211_parse_mesh_config() 6972 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, element_ttl, mask, in nl80211_parse_mesh_config() [all …]
|
/net/mac802154/ |
D | Makefile | 4 iface.o llsec.o util.o cfg.o trace.o
|