Searched refs:cfg (Results 1 - 25 of 29) sorted by relevance

12

/net/netfilter/
H A Dxt_hashlimit.c101 struct hashlimit_cfg1 cfg; /* config */ member in struct:xt_hashlimit_htable
133 * Instead of returning hash % ht->cfg.size (implying a divide)
134 * we return the high 32 bits of the (hash * ht->cfg.size) that will
135 * give results between [0 and cfg.size-1] and same hash distribution,
138 return ((u64)hash * ht->cfg.size) >> 32;
184 if (ht->cfg.max && ht->count >= ht->cfg.max) {
186 net_err_ratelimited("max count of %u reached\n", ht->cfg.max);
226 if (minfo->cfg.size) {
227 size = minfo->cfg
[all...]
H A Dxt_RATEEST.c99 } cfg; local
134 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est));
135 cfg.opt.nla_type = TCA_STATS_RATE_EST;
136 cfg.est.interval = info->interval;
137 cfg.est.ewma_log = info->ewma_log;
140 &est->lock, &cfg.opt);
H A Dnfnetlink.c245 struct netlink_kernel_cfg cfg = { local
253 nfnl = netlink_kernel_create(net, NETLINK_NETFILTER, &cfg);
/net/ipv4/
H A Dfib_frontend.c349 struct fib_config *cfg)
354 memset(cfg, 0, sizeof(*cfg));
355 cfg->fc_nlinfo.nl_net = net;
384 cfg->fc_dst_len = plen;
385 cfg->fc_dst = addr;
388 cfg->fc_nlflags = NLM_F_CREATE;
389 cfg->fc_protocol = RTPROT_BOOT;
393 cfg->fc_priority = rt->rt_metric - 1;
396 cfg
348 rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt, struct fib_config *cfg) argument
482 struct fib_config cfg; local
537 rtm_to_fib_config(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_config *cfg) argument
611 struct fib_config cfg; local
633 struct fib_config cfg; local
701 struct fib_config cfg = { local
984 struct netlink_kernel_cfg cfg = { local
[all...]
H A Dfib_semantics.c467 int remaining, struct fib_config *cfg)
476 (cfg->fc_flags & ~0xFF) | rtnh->rtnh_flags;
502 int fib_nh_match(struct fib_config *cfg, struct fib_info *fi) argument
509 if (cfg->fc_priority && cfg->fc_priority != fi->fib_priority)
512 if (cfg->fc_oif || cfg->fc_gw) {
513 if ((!cfg->fc_oif || cfg->fc_oif == fi->fib_nh->nh_oif) &&
514 (!cfg
466 fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, int remaining, struct fib_config *cfg) argument
599 fib_check_nh(struct fib_config *cfg, struct fib_info *fi, struct fib_nh *nh) argument
774 fib_create_info(struct fib_config *cfg) argument
[all...]
H A Dfib_lookup.h28 extern struct fib_info *fib_create_info(struct fib_config *cfg);
29 extern int fib_nh_match(struct fib_config *cfg, struct fib_info *fi);
H A Dfib_trie.c1172 int fib_table_insert(struct fib_table *tb, struct fib_config *cfg) argument
1178 int plen = cfg->fc_dst_len;
1179 u8 tos = cfg->fc_tos;
1187 key = ntohl(cfg->fc_dst);
1198 fi = fib_create_info(cfg);
1228 if (cfg->fc_nlflags & NLM_F_EXCL)
1244 if (fa->fa_type == cfg->fc_type &&
1251 if (cfg->fc_nlflags & NLM_F_REPLACE) {
1269 new_fa->fa_type = cfg->fc_type;
1278 rt_cache_flush(cfg
1621 fib_table_delete(struct fib_table *tb, struct fib_config *cfg) argument
[all...]
/net/l2tp/
H A Dl2tp_netlink.c107 struct l2tp_tunnel_cfg cfg = { 0, }; local
133 cfg.encap = nla_get_u16(info->attrs[L2TP_ATTR_ENCAP_TYPE]);
142 cfg.local_ip6 = nla_data(
144 cfg.peer_ip6 = nla_data(
150 cfg.local_ip.s_addr = nla_get_be32(
152 cfg.peer_ip.s_addr = nla_get_be32(
159 cfg.local_udp_port = nla_get_u16(info->attrs[L2TP_ATTR_UDP_SPORT]);
161 cfg.peer_udp_port = nla_get_u16(info->attrs[L2TP_ATTR_UDP_DPORT]);
163 cfg.use_udp_checksums = nla_get_flag(info->attrs[L2TP_ATTR_UDP_CSUM]);
167 cfg
402 struct l2tp_session_cfg cfg = { 0, }; local
[all...]
H A Dl2tp_core.c1415 struct l2tp_tunnel_cfg *cfg,
1427 switch (cfg->encap) {
1430 if (cfg->local_ip6 && cfg->peer_ip6) {
1438 memcpy(&udp6_addr.sin6_addr, cfg->local_ip6,
1440 udp6_addr.sin6_port = htons(cfg->local_udp_port);
1447 memcpy(&udp6_addr.sin6_addr, cfg->peer_ip6,
1449 udp6_addr.sin6_port = htons(cfg->peer_udp_port);
1465 udp_addr.sin_addr = cfg->local_ip;
1466 udp_addr.sin_port = htons(cfg
1412 l2tp_tunnel_sock_create(struct net *net, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct socket **sockp) argument
1560 l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp) argument
1803 l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument
[all...]
H A Dl2tp_eth.c208 static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument
231 if (cfg->ifname) {
232 dev = dev_get_by_name(net, cfg->ifname);
238 strlcpy(name, cfg->ifname, IFNAMSIZ);
243 peer_session_id, cfg);
H A Dl2tp_core.h199 int (*session_create)(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg);
241 extern int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp);
244 extern struct l2tp_session *l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg);
H A Dl2tp_ppp.c599 struct l2tp_session_cfg cfg = { 0, }; local
715 cfg.mtu = cfg.mru = 1500 - PPPOL2TP_HEADER_OVERHEAD;
720 peer_session_id, &cfg);
806 static int pppol2tp_session_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument
831 if (cfg->mtu == 0)
832 cfg->mtu = 1500 - PPPOL2TP_HEADER_OVERHEAD;
833 if (cfg->mru == 0)
834 cfg->mru = cfg
[all...]
/net/caif/
H A Dcaif_dev.c50 struct cfcnfg *cfg; member in struct:caif_net
61 return caifn->cfg;
312 struct cfcnfg *cfg = get_cfcnfg(dev_net(dev)); local
340 cfcnfg_add_phy_layer(cfg,
360 struct cfcnfg *cfg; local
365 cfg = get_cfcnfg(dev_net(dev));
404 cfcnfg_set_phy_state(cfg, &caifd->layer, true);
418 cfcnfg_set_phy_state(cfg, &caifd->layer, false);
469 cfcnfg_del_phy_layer(cfg, &caifd->layer) != 0) {
501 caifn->cfg
513 struct cfcnfg *cfg = get_cfcnfg(net); local
[all...]
H A Dcfcnfg.c117 void cfcnfg_remove(struct cfcnfg *cfg) argument
120 if (cfg) {
123 kfree(cfg->mux);
124 cfctrl_remove(cfg->ctrl);
125 kfree(cfg);
182 struct cfcnfg *cfg = get_cfcnfg(net); local
185 cfctrl_cancel_req(cfg->ctrl, adap_layer);
189 servl = cfmuxl_remove_uplayer(cfg->mux, channel_id);
190 cfctrl_linkdown_req(cfg->ctrl, channel_id, adap_layer);
310 struct cfcnfg *cfg local
[all...]
/net/ipv6/
H A Droute.c1333 int ip6_route_add(struct fib6_config *cfg) argument
1336 struct net *net = cfg->fc_nlinfo.nl_net;
1343 if (cfg->fc_dst_len > 128 || cfg->fc_src_len > 128)
1346 if (cfg->fc_src_len)
1349 if (cfg->fc_ifindex) {
1351 dev = dev_get_by_index(net, cfg->fc_ifindex);
1359 if (cfg->fc_metric == 0)
1360 cfg->fc_metric = IP6_RT_PRIO_USER;
1363 if (cfg
1598 ip6_route_del(struct fib6_config *cfg) argument
1833 struct fib6_config cfg = { local
1885 struct fib6_config cfg = { local
1916 rtmsg_to_fib6_config(struct net *net, struct in6_rtmsg *rtmsg, struct fib6_config *cfg) argument
1939 struct fib6_config cfg; local
2206 rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh, struct fib6_config *cfg) argument
2291 ip6_route_multipath(struct fib6_config *cfg, int add) argument
2348 struct fib6_config cfg; local
2363 struct fib6_config cfg; local
[all...]
/net/core/
H A Ddev_ioctl.c187 struct hwtstamp_config cfg; local
193 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg)))
196 if (cfg.flags) /* reserved for future extensions */
199 tx_type = cfg.tx_type;
200 rx_filter = cfg.rx_filter;
H A Dsock_diag.c202 struct netlink_kernel_cfg cfg = { local
206 net->diag_nlsk = netlink_kernel_create(net, NETLINK_SOCK_DIAG, &cfg);
/net/decnet/netfilter/
H A Ddn_rtmsg.c128 struct netlink_kernel_cfg cfg = { local
133 dnrmg = netlink_kernel_create(&init_net, NETLINK_DNRTMSG, &cfg);
/net/mac80211/
H A DMakefile19 cfg.o \
/net/wireless/
H A Dnl80211.c4692 struct mesh_config *cfg,
4698 #define FILL_IN_MESH_PARAM_IF_SET(tb, cfg, param, min, max, mask, attr, fn) \
4703 cfg->param = fn(tb[attr]); \
4721 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshRetryTimeout, 1, 255,
4724 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConfirmTimeout, 1, 255,
4727 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHoldingTimeout, 1, 255,
4730 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxPeerLinks, 0, 255,
4733 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxRetries, 0, 16,
4736 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshTTL, 1, 255,
4738 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, element_tt
4691 nl80211_parse_mesh_config(struct genl_info *info, struct mesh_config *cfg, u32 *mask_out) argument
4879 struct mesh_config cfg; local
7552 struct mesh_config cfg; local
7774 struct cfg80211_wowlan_tcp *cfg; local
[all...]
H A Dscan.c1229 u8 *buf, *cfg, *p; local
1329 cfg = (u8 *)ie + 2;
1333 "0x%02X", cfg[0]);
1339 cfg[1]);
1345 cfg[2]);
1350 sprintf(buf, "Synchronization ID: 0x%02X", cfg[3]);
1355 sprintf(buf, "Authentication ID: 0x%02X", cfg[4]);
1360 sprintf(buf, "Formation Info: 0x%02X", cfg[5]);
1365 sprintf(buf, "Capabilities: 0x%02X", cfg[6]);
/net/nfc/nci/
H A Dcore.c146 struct disc_map_config *cfg = cmd.mapping_configs; local
157 cfg[*num].rf_protocol = NCI_RF_PROTOCOL_ISO_DEP;
158 cfg[*num].mode = NCI_DISC_MAP_MODE_POLL |
160 cfg[*num].rf_interface = NCI_RF_INTERFACE_ISO_DEP;
164 cfg[*num].rf_protocol = NCI_RF_PROTOCOL_NFC_DEP;
165 cfg[*num].mode = NCI_DISC_MAP_MODE_POLL |
167 cfg[*num].rf_interface = NCI_RF_INTERFACE_NFC_DEP;
/net/bridge/netfilter/
H A Debt_ulog.c306 struct netlink_kernel_cfg cfg = { local
318 ebt->ebtulognl = netlink_kernel_create(net, NETLINK_NFLOG, &cfg);
/net/netlink/
H A Daf_netlink.c2231 struct netlink_kernel_cfg *cfg)
2237 struct mutex *cb_mutex = cfg ? cfg->cb_mutex : NULL;
2260 if (!cfg || cfg->groups < 32)
2263 groups = cfg->groups;
2270 if (cfg && cfg->input)
2271 nlk_sk(sk)->netlink_rcv = cfg->input;
2285 if (cfg) {
2230 __netlink_kernel_create(struct net *net, int unit, struct module *module, struct netlink_kernel_cfg *cfg) argument
[all...]
/net/ipv4/netfilter/
H A Dipt_ULOG.c405 struct netlink_kernel_cfg cfg = { local
417 ulog->nflognl = netlink_kernel_create(net, NETLINK_NFLOG, &cfg);

Completed in 286 milliseconds

12