/net/ipv4/ |
H A D | udp_tunnel.c | 11 int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg, argument 25 udp_addr.sin_addr = cfg->local_ip; 26 udp_addr.sin_port = cfg->local_udp_port; 32 if (cfg->peer_udp_port) { 34 udp_addr.sin_addr = cfg->peer_ip; 35 udp_addr.sin_port = cfg->peer_udp_port; 42 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; 58 struct udp_tunnel_sock_cfg *cfg) 68 rcu_assign_sk_user_data(sk, cfg->sk_user_data); 70 udp_sk(sk)->encap_type = cfg 57 setup_udp_tunnel_sock(struct net *net, struct socket *sock, struct udp_tunnel_sock_cfg *cfg) argument [all...] |
H A D | fou.c | 293 static int fou_encap_init(struct sock *sk, struct fou *fou, struct fou_cfg *cfg) argument 296 fou->protocol = cfg->protocol; 299 fou->udp_offloads.port = cfg->udp_config.local_udp_port; 300 fou->udp_offloads.ipproto = cfg->protocol; 305 static int gue_encap_init(struct sock *sk, struct fou *fou, struct fou_cfg *cfg) argument 310 fou->udp_offloads.port = cfg->udp_config.local_udp_port; 315 static int fou_create(struct net *net, struct fou_cfg *cfg, argument 324 err = udp_sock_create(net, &cfg->udp_config, &sock); 337 fou->port = cfg->udp_config.local_udp_port; 340 switch (cfg 389 fou_destroy(struct net *net, struct fou_cfg *cfg) argument 425 parse_nl_config(struct genl_info *info, struct fou_cfg *cfg) argument 458 struct fou_cfg cfg; local 470 struct fou_cfg cfg; local [all...] |
H A D | fib_frontend.c | 351 struct fib_config *cfg) 356 memset(cfg, 0, sizeof(*cfg)); 357 cfg->fc_nlinfo.nl_net = net; 386 cfg->fc_dst_len = plen; 387 cfg->fc_dst = addr; 390 cfg->fc_nlflags = NLM_F_CREATE; 391 cfg->fc_protocol = RTPROT_BOOT; 395 cfg->fc_priority = rt->rt_metric - 1; 398 cfg 350 rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt, struct fib_config *cfg) argument 484 struct fib_config cfg; local 539 rtm_to_fib_config(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_config *cfg) argument 613 struct fib_config cfg; local 635 struct fib_config cfg; local 703 struct fib_config cfg = { local 984 struct netlink_kernel_cfg cfg = { local [all...] |
H A D | fib_semantics.c | 471 int remaining, struct fib_config *cfg) 480 (cfg->fc_flags & ~0xFF) | rtnh->rtnh_flags; 506 int fib_nh_match(struct fib_config *cfg, struct fib_info *fi) argument 513 if (cfg->fc_priority && cfg->fc_priority != fi->fib_priority) 516 if (cfg->fc_oif || cfg->fc_gw) { 517 if ((!cfg->fc_oif || cfg->fc_oif == fi->fib_nh->nh_oif) && 518 (!cfg 470 fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, int remaining, struct fib_config *cfg) argument 603 fib_check_nh(struct fib_config *cfg, struct fib_info *fi, struct fib_nh *nh) argument 778 fib_create_info(struct fib_config *cfg) argument [all...] |
H A D | fib_lookup.h | 28 struct fib_info *fib_create_info(struct fib_config *cfg); 29 int fib_nh_match(struct fib_config *cfg, struct fib_info *fi);
|
H A D | fib_trie.c | 1164 int fib_table_insert(struct fib_table *tb, struct fib_config *cfg) argument 1170 int plen = cfg->fc_dst_len; 1171 u8 tos = cfg->fc_tos; 1179 key = ntohl(cfg->fc_dst); 1190 fi = fib_create_info(cfg); 1220 if (cfg->fc_nlflags & NLM_F_EXCL) 1236 if (fa->fa_type == cfg->fc_type && 1243 if (cfg->fc_nlflags & NLM_F_REPLACE) { 1261 new_fa->fa_type = cfg->fc_type; 1270 rt_cache_flush(cfg 1613 fib_table_delete(struct fib_table *tb, struct fib_config *cfg) argument [all...] |
/net/netfilter/ |
H A D | xt_hashlimit.c | 101 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 reciprocal_scale(hash, ht->cfg.size); 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 D | xt_RATEEST.c | 99 } 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 D | nfnetlink.c | 488 struct netlink_kernel_cfg cfg = { local 496 nfnl = netlink_kernel_create(net, NETLINK_NETFILTER, &cfg);
|
/net/ipv6/ |
H A D | ip6_udp_tunnel.c | 15 int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg, argument 29 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, 31 udp6_addr.sin6_port = cfg->local_udp_port; 37 if (cfg->peer_udp_port) { 39 memcpy(&udp6_addr.sin6_addr, &cfg->peer_ip6, 41 udp6_addr.sin6_port = cfg->peer_udp_port; 49 udp_set_no_check6_tx(sock->sk, !cfg->use_udp6_tx_checksums); 50 udp_set_no_check6_rx(sock->sk, !cfg->use_udp6_rx_checksums);
|
H A D | route.c | 1462 int ip6_route_add(struct fib6_config *cfg) argument 1465 struct net *net = cfg->fc_nlinfo.nl_net; 1472 if (cfg->fc_dst_len > 128 || cfg->fc_src_len > 128) 1475 if (cfg->fc_src_len) 1478 if (cfg->fc_ifindex) { 1480 dev = dev_get_by_index(net, cfg->fc_ifindex); 1488 if (cfg->fc_metric == 0) 1489 cfg->fc_metric = IP6_RT_PRIO_USER; 1492 if (cfg 1706 ip6_route_del(struct fib6_config *cfg) argument 1942 struct fib6_config cfg = { local 1994 struct fib6_config cfg = { local 2025 rtmsg_to_fib6_config(struct net *net, struct in6_rtmsg *rtmsg, struct fib6_config *cfg) argument 2048 struct fib6_config cfg; local 2331 rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh, struct fib6_config *cfg) argument 2416 ip6_route_multipath(struct fib6_config *cfg, int add) argument 2473 struct fib6_config cfg; local 2488 struct fib6_config cfg; local [all...] |
/net/l2tp/ |
H A D | l2tp_netlink.c | 107 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 408 struct l2tp_session_cfg cfg = { 0, }; local [all...] |
H A D | l2tp_core.c | 1357 struct l2tp_tunnel_cfg *cfg, 1364 switch (cfg->encap) { 1369 if (cfg->local_ip6 && cfg->peer_ip6) { 1371 memcpy(&udp_conf.local_ip6, cfg->local_ip6, 1373 memcpy(&udp_conf.peer_ip6, cfg->peer_ip6, 1376 cfg->udp6_zero_tx_checksums; 1378 cfg->udp6_zero_rx_checksums; 1383 udp_conf.local_ip = cfg->local_ip; 1384 udp_conf.peer_ip = cfg 1354 l2tp_tunnel_sock_create(struct net *net, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct socket **sockp) argument 1474 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 1732 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 D | l2tp_eth.c | 208 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 D | l2tp_core.h | 209 int (*session_create)(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg); 252 u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, 259 struct l2tp_session_cfg *cfg);
|
H A D | l2tp_ppp.c | 600 struct l2tp_session_cfg cfg = { 0, }; local 716 cfg.mtu = cfg.mru = 1500 - PPPOL2TP_HEADER_OVERHEAD; 721 peer_session_id, &cfg); 808 static int pppol2tp_session_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument 833 if (cfg->mtu == 0) 834 cfg->mtu = 1500 - PPPOL2TP_HEADER_OVERHEAD; 835 if (cfg->mru == 0) 836 cfg->mru = cfg [all...] |
/net/caif/ |
H A D | caif_dev.c | 51 struct cfcnfg *cfg; member in struct:caif_net 62 return caifn->cfg; 313 struct cfcnfg *cfg = get_cfcnfg(dev_net(dev)); local 341 cfcnfg_add_phy_layer(cfg, 361 struct cfcnfg *cfg; local 366 cfg = get_cfcnfg(dev_net(dev)); 405 cfcnfg_set_phy_state(cfg, &caifd->layer, true); 419 cfcnfg_set_phy_state(cfg, &caifd->layer, false); 470 cfcnfg_del_phy_layer(cfg, &caifd->layer) != 0) { 502 caifn->cfg 514 struct cfcnfg *cfg = get_cfcnfg(net); local [all...] |
H A D | cfcnfg.c | 117 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/core/ |
H A D | dev_ioctl.c | 187 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 D | sock_diag.c | 199 struct netlink_kernel_cfg cfg = { local 203 net->diag_nlsk = netlink_kernel_create(net, NETLINK_SOCK_DIAG, &cfg);
|
/net/decnet/netfilter/ |
H A D | dn_rtmsg.c | 128 struct netlink_kernel_cfg cfg = { local 133 dnrmg = netlink_kernel_create(&init_net, NETLINK_DNRTMSG, &cfg);
|
/net/mac80211/ |
H A D | Makefile | 19 cfg.o \
|
/net/nfc/nci/ |
H A D | core.c | 145 struct disc_map_config *cfg = cmd.mapping_configs; local 156 cfg[*num].rf_protocol = NCI_RF_PROTOCOL_ISO_DEP; 157 cfg[*num].mode = NCI_DISC_MAP_MODE_POLL | 159 cfg[*num].rf_interface = NCI_RF_INTERFACE_ISO_DEP; 163 cfg[*num].rf_protocol = NCI_RF_PROTOCOL_NFC_DEP; 164 cfg[*num].mode = NCI_DISC_MAP_MODE_POLL | 166 cfg[*num].rf_interface = NCI_RF_INTERFACE_NFC_DEP;
|
/net/wireless/ |
H A D | scan.c | 1289 u8 *buf, *cfg, *p; local 1389 cfg = (u8 *)ie + 2; 1393 "0x%02X", cfg[0]); 1399 cfg[1]); 1405 cfg[2]); 1410 sprintf(buf, "Synchronization ID: 0x%02X", cfg[3]); 1415 sprintf(buf, "Authentication ID: 0x%02X", cfg[4]); 1420 sprintf(buf, "Formation Info: 0x%02X", cfg[5]); 1425 sprintf(buf, "Capabilities: 0x%02X", cfg[6]);
|
H A D | nl80211.c | 4945 struct mesh_config *cfg, 4951 #define FILL_IN_MESH_PARAM_IF_SET(tb, cfg, param, min, max, mask, attr, fn) \ 4956 cfg->param = fn(tb[attr]); \ 4974 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshRetryTimeout, 1, 255, 4977 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConfirmTimeout, 1, 255, 4980 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHoldingTimeout, 1, 255, 4983 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxPeerLinks, 0, 255, 4986 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxRetries, 0, 16, 4989 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshTTL, 1, 255, 4991 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, element_tt 4944 nl80211_parse_mesh_config(struct genl_info *info, struct mesh_config *cfg, u32 *mask_out) argument 5142 struct mesh_config cfg; local 8166 struct mesh_config cfg; local 8405 struct cfg80211_wowlan_tcp *cfg; local [all...] |