/net/psample/ |
D | psample.c | 37 struct psample_group *group, in psample_group_nl_fill() argument 48 ret = nla_put_u32(msg, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); in psample_group_nl_fill() 52 ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_REFCOUNT, group->refcount); in psample_group_nl_fill() 56 ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_SEQ, group->seq); in psample_group_nl_fill() 71 struct psample_group *group; in psample_nl_cmd_get_group_dumpit() local 77 list_for_each_entry(group, &psample_groups_list, list) { in psample_nl_cmd_get_group_dumpit() 78 if (!net_eq(group->net, sock_net(msg->sk))) in psample_nl_cmd_get_group_dumpit() 84 err = psample_group_nl_fill(msg, group, PSAMPLE_CMD_NEW_GROUP, in psample_nl_cmd_get_group_dumpit() 118 static void psample_group_notify(struct psample_group *group, in psample_group_notify() argument 128 err = psample_group_nl_fill(msg, group, cmd, 0, 0, NLM_F_MULTI); in psample_group_notify() [all …]
|
/net/mac80211/ |
D | rc80211_minstrel_ht.c | 305 int group, idx; in minstrel_ht_get_stats() local 308 group = minstrel_ht_get_group_idx(rate); in minstrel_ht_get_stats() 311 group = minstrel_vht_get_group_idx(rate); in minstrel_ht_get_stats() 314 group = MINSTREL_CCK_GROUP; in minstrel_ht_get_stats() 321 if ((mi->supported[group] & BIT(idx + 4)) && in minstrel_ht_get_stats() 325 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats() 348 minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate, in minstrel_ht_get_tp_avg() argument 357 if (group != MINSTREL_CCK_GROUP) in minstrel_ht_get_tp_avg() 360 nsecs += minstrel_mcs_groups[group].duration[rate] << in minstrel_ht_get_tp_avg() 361 minstrel_mcs_groups[group].shift; in minstrel_ht_get_tp_avg() [all …]
|
D | rc80211_minstrel_ht.h | 121 int minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate,
|
/net/bridge/ |
D | br_multicast.c | 50 __be32 group, 58 const struct in6_addr *group, 217 __be32 group, in br_ip4_multicast_alloc_query() argument 278 ih->code = (group ? br->multicast_last_member_interval : in br_ip4_multicast_alloc_query() 281 ih->group = group; in br_ip4_multicast_alloc_query() 288 ihv3->code = (group ? br->multicast_last_member_interval : in br_ip4_multicast_alloc_query() 291 ihv3->group = group; in br_ip4_multicast_alloc_query() 440 struct br_ip *group) in br_multicast_new_group() argument 445 mp = br_mdb_ip_get(br, group); in br_multicast_new_group() 459 mp->addr = *group; in br_multicast_new_group() [all …]
|
D | br_mdb.c | 441 struct br_ip *group, int type, u8 flags) in br_mdb_notify() argument 450 entry.addr.proto = group->proto; in br_mdb_notify() 451 entry.addr.u.ip4 = group->u.ip4; in br_mdb_notify() 453 entry.addr.u.ip6 = group->u.ip6; in br_mdb_notify() 455 entry.vid = group->vid; in br_mdb_notify() 603 struct br_ip *group, unsigned char state) in br_mdb_add_group() argument 611 mp = br_mdb_ip_get(br, group); in br_mdb_add_group() 613 mp = br_multicast_new_group(br, group); in br_mdb_add_group() 641 p = br_multicast_new_port_group(port, group, *pp, state, NULL); in br_mdb_add_group()
|
/net/netlink/ |
D | af_netlink.c | 149 static inline u32 netlink_group_mask(u32 group) in netlink_group_mask() argument 151 if (group > 32) in netlink_group_mask() 153 return group ? 1 << (group - 1) : 0; in netlink_group_mask() 667 int (*bind)(struct net *net, int group); in netlink_create() 668 void (*unbind)(struct net *net, int group); in netlink_create() 969 static void netlink_undo_bind(int group, long unsigned int groups, in netlink_undo_bind() argument 978 for (undo = 0; undo < group; undo++) in netlink_undo_bind() 1024 int group; in netlink_bind() local 1027 for (group = 0; group < BITS_PER_TYPE(u32); group++) { in netlink_bind() 1028 if (!test_bit(group, &groups)) in netlink_bind() [all …]
|
D | af_netlink.h | 43 int (*netlink_bind)(struct net *net, int group); 44 void (*netlink_unbind)(struct net *net, int group); 65 int (*bind)(struct net *net, int group); 66 void (*unbind)(struct net *net, int group);
|
D | genetlink.c | 1061 static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group, in genlmsg_mcast() argument 1077 portid, group, flags); in genlmsg_mcast() 1087 err = nlmsg_multicast(prev->genl_sock, skb, portid, group, flags); in genlmsg_mcast() 1100 unsigned int group, gfp_t flags) in genlmsg_multicast_allns() argument 1102 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genlmsg_multicast_allns() 1104 group = family->mcgrp_offset + group; in genlmsg_multicast_allns() 1105 return genlmsg_mcast(skb, portid, group, flags); in genlmsg_multicast_allns() 1110 struct genl_info *info, u32 group, gfp_t flags) in genl_notify() argument 1119 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genl_notify() 1121 group = family->mcgrp_offset + group; in genl_notify() [all …]
|
/net/sched/ |
D | act_sample.c | 263 struct psample_group *group = priv; in tcf_psample_group_put() local 265 psample_group_put(group); in tcf_psample_group_put() 273 struct psample_group *group; in tcf_sample_get_group() local 275 group = rcu_dereference_protected(s->psample_group, in tcf_sample_get_group() 277 if (group) { in tcf_sample_get_group() 278 psample_group_take(group); in tcf_sample_get_group() 282 return group; in tcf_sample_get_group()
|
/net/netfilter/ |
D | nfnetlink.c | 132 int nfnetlink_has_listeners(struct net *net, unsigned int group) in nfnetlink_has_listeners() argument 134 return netlink_has_listeners(net->nfnl, group); in nfnetlink_has_listeners() 139 unsigned int group, int echo, gfp_t flags) in nfnetlink_send() argument 141 return nlmsg_notify(net->nfnl, skb, portid, group, echo, flags); in nfnetlink_send() 145 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) in nfnetlink_set_err() argument 147 return netlink_set_err(net->nfnl, portid, group, error); in nfnetlink_set_err() 587 static int nfnetlink_bind(struct net *net, int group) in nfnetlink_bind() argument 592 if (group <= NFNLGRP_NONE || group > NFNLGRP_MAX) in nfnetlink_bind() 595 type = nfnl_group2type[group]; in nfnetlink_bind()
|
D | xt_owner.c | 110 kgid_t group = gi->gid[i]; in owner_mt() local 112 if (gid_gte(group, gid_min) && in owner_mt() 113 gid_lte(group, gid_max)) { in owner_mt()
|
D | xt_devgroup.c | 24 (((info->src_group ^ xt_in(par)->group) & info->src_mask ? 1 : 0) ^ in devgroup_mt() 29 (((info->dst_group ^ xt_out(par)->group) & info->dst_mask ? 1 : 0) ^ in devgroup_mt()
|
D | xt_NFLOG.c | 29 li.u.ulog.group = info->group; in nflog_tg()
|
D | nft_log.c | 183 li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP])); in nft_log_init() 246 if (nla_put_be16(skb, NFTA_LOG_GROUP, htons(li->u.ulog.group))) in nft_log_dump()
|
/net/core/ |
D | sock_diag.c | 127 const enum sknetlink_groups group = sock_diag_destroy_group(sk); in sock_diag_broadcast_destroy_work() local 130 WARN_ON(group == SKNLGRP_NONE); in sock_diag_broadcast_destroy_work() 143 nlmsg_multicast(sock_net(sk)->diag_nlsk, skb, 0, group, in sock_diag_broadcast_destroy_work() 279 static int sock_diag_bind(struct net *net, int group) in sock_diag_bind() argument 281 switch (group) { in sock_diag_bind()
|
D | devlink.c | 5248 const struct devlink_trap_group *group; member 5411 group_item->group->name)) in devlink_nl_trap_fill() 5591 if (!strcmp(group_item->group->name, name)) in devlink_trap_group_item_lookup() 5628 group_item->group->name)) in devlink_nl_trap_group_fill() 5631 if (group_item->group->generic && in devlink_nl_trap_group_fill() 5731 const char *group_name = group_item->group->name; in __devlink_trap_group_action_set() 5736 if (strcmp(trap_item->trap->group.name, group_name)) in __devlink_trap_group_action_set() 7613 if (!trap || !trap->name || !trap->group.name) in devlink_trap_verify() 7623 devlink_trap_group_generic_verify(const struct devlink_trap_group *group) in devlink_trap_group_generic_verify() argument 7625 if (group->id > DEVLINK_TRAP_GROUP_GENERIC_ID_MAX) in devlink_trap_group_generic_verify() [all …]
|
D | rtnetlink.c | 706 int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned int group, int echo) in rtnetlink_send() argument 711 NETLINK_CB(skb).dst_group = group; in rtnetlink_send() 714 netlink_broadcast(rtnl, skb, pid, group, GFP_KERNEL); in rtnetlink_send() 728 void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, u32 group, in rtnl_notify() argument 737 nlmsg_notify(rtnl, skb, pid, group, report, flags); in rtnl_notify() 741 void rtnl_set_sk_err(struct net *net, u32 group, int error) in rtnl_set_sk_err() argument 745 netlink_set_err(rtnl, 0, group, error); in rtnl_set_sk_err() 1629 nla_put_u32(skb, IFLA_GROUP, dev->group) || in rtnl_fill_ifinfo() 2813 static int rtnl_group_dellink(const struct net *net, int group) in rtnl_group_dellink() argument 2819 if (!group) in rtnl_group_dellink() [all …]
|
/net/ipv6/ |
D | mcast.c | 260 const struct in6_addr *group, in ip6_mc_find_dev_rcu() argument 267 struct rt6_info *rt = rt6_lookup(net, group, NULL, 0, NULL, 0); in ip6_mc_find_dev_rcu() 331 struct in6_addr *source, *group; in ip6_mc_source() local 343 group = &((struct sockaddr_in6 *)&pgsr->gsr_group)->sin6_addr; in ip6_mc_source() 345 if (!ipv6_addr_is_multicast(group)) in ip6_mc_source() 349 idev = ip6_mc_find_dev_rcu(net, group, pgsr->gsr_interface); in ip6_mc_source() 360 if (ipv6_addr_equal(&pmc->addr, group)) in ip6_mc_source() 375 ip6_mc_add_src(idev, group, omode, 0, NULL, 0); in ip6_mc_source() 376 ip6_mc_del_src(idev, group, pmc->sfmode, 0, NULL, 0); in ip6_mc_source() 403 ip6_mc_del_src(idev, group, omode, 1, source, 1); in ip6_mc_source() [all …]
|
/net/tipc/ |
D | socket.c | 118 struct tipc_group *group; member 640 if (tsk->group) { in tipc_bind() 798 if (tsk->group) in tipc_sendmcast() 853 u16 bc_snd_nxt = tipc_group_bc_snd_nxt(tsk->group); in tipc_send_group_msg() 920 tsk->group && in tipc_send_group_unicast() 921 !tipc_group_cong(tsk->group, node, port, blks, in tipc_send_group_unicast() 970 exclude = tipc_group_exclude(tsk->group); in tipc_send_group_anycast() 980 cong = tipc_group_cong(tsk->group, node, port, blks, in tipc_send_group_anycast() 1000 tsk->group && in tipc_send_group_anycast() 1001 !tipc_group_cong(tsk->group, node, port, in tipc_send_group_anycast() [all …]
|
D | group.c | 67 struct tipc_group *group; member 110 *m->group->open = true; in tipc_group_open() 314 m->group = grp; in tipc_group_create_member() 373 struct tipc_group *grp = m->group; in tipc_group_update_member() 804 *m->group->open = true; in tipc_group_proto_rcv() 927 struct nlattr *group = nla_nest_start_noflag(skb, TIPC_NLA_SOCK_GROUP); in tipc_group_fill_sock_diag() local 929 if (!group) in tipc_group_fill_sock_diag() 952 nla_nest_end(skb, group); in tipc_group_fill_sock_diag() 956 nla_nest_cancel(skb, group); in tipc_group_fill_sock_diag()
|
D | Makefile | 12 topsrv.o socket.o group.o trace.o
|
/net/bridge/netfilter/ |
D | ebt_nflog.c | 32 li.u.ulog.group = info->group; in ebt_nflog_tg()
|
/net/batman-adv/ |
D | bridge_loop_avoidance.c | 1042 if (bla_dst->group == bla_dst_own->group) in batadv_check_claim_group() 1055 if (ntohs(bla_dst->group) > ntohs(bla_dst_own->group)) { in batadv_check_claim_group() 1058 ntohs(bla_dst->group)); in batadv_check_claim_group() 1059 bla_dst_own->group = bla_dst->group; in batadv_check_claim_group() 1334 __be16 group; in batadv_bla_update_orig_address() local 1338 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address() 1339 bat_priv->bla.claim_dest.group = group; in batadv_bla_update_orig_address() 1545 bat_priv->bla.claim_dest.group = htons(crc); in batadv_bla_init() 1548 bat_priv->bla.claim_dest.group = 0; /* will be set later */ in batadv_bla_init() 2152 ntohs(bat_priv->bla.claim_dest.group)); in batadv_bla_claim_table_seq_print_text() [all …]
|
/net/ipv4/ |
D | igmp.c | 737 __be32 group = pmc ? pmc->multiaddr : 0; in igmp_send_report() local 745 if (ipv4_is_local_multicast(group) && in igmp_send_report() 752 dst = group; in igmp_send_report() 795 ih->group = group; in igmp_send_report() 914 static bool igmp_heard_report(struct in_device *in_dev, __be32 group) in igmp_heard_report() argument 921 if (group == IGMP_ALL_HOSTS) in igmp_heard_report() 923 if (ipv4_is_local_multicast(group) && in igmp_heard_report() 929 if (im->multiaddr == group) { in igmp_heard_report() 945 __be32 group = ih->group; in igmp_heard_query() local 959 group = 0; in igmp_heard_query() [all …]
|
/net/ieee802154/ |
D | netlink.c | 45 int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) in ieee802154_nl_mcast() argument 52 return genlmsg_multicast(&nl802154_family, msg, 0, group, GFP_ATOMIC); in ieee802154_nl_mcast()
|