| /net/netfilter/ |
| A D | xt_set.c | 76 info->u.compat.dim++; in compat_flags() 78 info->u.compat.flags |= (1 << info->u.compat.dim); in compat_flags() 171 info->match_set.flags, info->flags, UINT_MAX, in set_match_v3() 172 info->packets.value, info->bytes.value, in set_match_v3() 173 info->packets.op, info->bytes.op); in set_match_v3() 194 info->match_set.flags, info->flags, UINT_MAX, in set_match_v4() 195 info->packets.value, info->bytes.value, in set_match_v4() 196 info->packets.op, info->bytes.op); in set_match_v4() 363 info->add_set.flags, info->flags, info->timeout, in set_target_v2() 395 info->add_set.flags, info->flags, info->timeout, in set_target_v3() [all …]
|
| A D | xt_IDLETIMER.c | 138 info->timer = kzalloc(sizeof(*info->timer), GFP_KERNEL); in idletimer_tg_create() 187 info->timer = kmalloc(sizeof(*info->timer), GFP_KERNEL); in idletimer_tg_create_v1() 217 info->timer->timer_type = info->timer_type; in idletimer_tg_create_v1() 226 info->timer->alarm.data = info->timer; in idletimer_tg_create_v1() 254 info->label, info->timeout); in idletimer_tg_target() 271 info->label, info->timeout); in idletimer_tg_target_v1() 326 info->label, info->timer->refcnt); in idletimer_tg_checkentry() 366 if (info->timer->timer_type != info->timer_type) { in idletimer_tg_checkentry_v1() 388 info->label, info->timer->refcnt); in idletimer_tg_checkentry_v1() 412 info->label, info->timer->refcnt); in idletimer_tg_destroy() [all …]
|
| A D | xt_conntrack.c | 45 &info->origsrc_addr, &info->origsrc_mask, family); in conntrack_mt_origsrc() 54 &info->origdst_addr, &info->origdst_mask, family); in conntrack_mt_origdst() 63 &info->replsrc_addr, &info->replsrc_mask, family); in conntrack_mt_replsrc() 72 &info->repldst_addr, &info->repldst_mask, family); in conntrack_mt_repldst() 133 !port_match(info->origsrc_port, info->origsrc_port_high, in ct_proto_port_check_v3() 139 !port_match(info->origdst_port, info->origdst_port_high, in ct_proto_port_check_v3() 147 !port_match(info->replsrc_port, info->replsrc_port_high, in ct_proto_port_check_v3() 153 !port_match(info->repldst_port, info->repldst_port_high, in ct_proto_port_check_v3() 247 return conntrack_mt(skb, par, info->state_mask, info->status_mask); in conntrack_mt_v1() 255 return conntrack_mt(skb, par, info->state_mask, info->status_mask); in conntrack_mt_v2() [all …]
|
| A D | xt_cgroup.c | 48 if ((info->invert_path & ~1) || (info->invert_classid & ~1)) in cgroup_mt_check_v1() 51 if (!info->has_path && !info->has_classid) { in cgroup_mt_check_v1() 56 if (info->has_path && info->has_classid) { in cgroup_mt_check_v1() 66 info->priv = NULL; in cgroup_mt_check_v1() 85 if ((info->invert_path & ~1) || (info->invert_classid & ~1)) in cgroup_mt_check_v2() 88 if (!info->has_path && !info->has_classid) { in cgroup_mt_check_v2() 93 if (info->has_path && info->has_classid) { in cgroup_mt_check_v2() 103 info->priv = NULL; in cgroup_mt_check_v2() 128 info->invert; in cgroup_mt_v0() 179 if (info->priv) in cgroup_mt_destroy_v1() [all …]
|
| A D | xt_rateest.c | 25 bps1 = info->bps1 >= sample.bps ? info->bps1 - sample.bps : 0; in xt_rateest_mt() 26 pps1 = info->pps1 >= sample.pps ? info->pps1 - sample.pps : 0; in xt_rateest_mt() 33 bps2 = info->bps2; in xt_rateest_mt() 34 pps2 = info->pps2; in xt_rateest_mt() 39 bps2 = info->bps2 >= sample.bps ? info->bps2 - sample.bps : 0; in xt_rateest_mt() 40 pps2 = info->pps2 >= sample.pps ? info->pps2 - sample.pps : 0; in xt_rateest_mt() 47 switch (info->mode) { in xt_rateest_mt() 85 switch (info->mode) { in xt_rateest_mt_checkentry() 106 info->est1 = est1; in xt_rateest_mt_checkentry() 107 info->est2 = est2; in xt_rateest_mt_checkentry() [all …]
|
| A D | xt_physdev.c | 40 !(info->invert & XT_PHYSDEV_OP_ISIN)) in physdev_mt() 43 !(info->invert & XT_PHYSDEV_OP_ISOUT)) in physdev_mt() 45 if ((info->bitmask & XT_PHYSDEV_OP_IN) && in physdev_mt() 46 !(info->invert & XT_PHYSDEV_OP_IN)) in physdev_mt() 49 !(info->invert & XT_PHYSDEV_OP_OUT)) in physdev_mt() 65 if ((info->bitmask & XT_PHYSDEV_OP_ISIN && in physdev_mt() 71 if (!(info->bitmask & XT_PHYSDEV_OP_IN)) in physdev_mt() 76 info->in_mask); in physdev_mt() 83 if (!(info->bitmask & XT_PHYSDEV_OP_OUT)) in physdev_mt() 89 ret = ifname_compare_aligned(outdev, info->physoutdev, info->out_mask); in physdev_mt() [all …]
|
| A D | xt_CT.c | 168 if (info->zone || info->flags & (XT_CT_ZONE_DIR_ORIG | in xt_ct_tg_check() 179 zone.id = info->zone; in xt_ct_tg_check() 190 if ((info->ct_events || info->exp_events) && in xt_ct_tg_check() 191 !nf_ct_ecache_ext_add(ct, info->ct_events, info->exp_events, in xt_ct_tg_check() 198 if (strnlen(info->helper, sizeof(info->helper)) == sizeof(info->helper)) { in xt_ct_tg_check() 209 if (strnlen(info->timeout, sizeof(info->timeout)) == sizeof(info->timeout)) { in xt_ct_tg_check() 220 info->ct = ct; in xt_ct_tg_check() 239 .zone = info->zone, in xt_ct_tg_check_v0() 248 memcpy(info_v1.helper, info->helper, sizeof(info->helper)); in xt_ct_tg_check_v0() 304 .ct = info->ct, in xt_ct_tg_destroy_v0() [all …]
|
| A D | xt_iprange.c | 23 if (info->flags & IPRANGE_SRC) { in iprange_mt4() 31 &info->src_min.ip, in iprange_mt4() 32 &info->src_max.ip); in iprange_mt4() 36 if (info->flags & IPRANGE_DST) { in iprange_mt4() 44 &info->dst_min.ip, in iprange_mt4() 45 &info->dst_max.ip); in iprange_mt4() 72 if (info->flags & IPRANGE_SRC) { in iprange_mt6() 80 &info->src_min.in6, in iprange_mt6() 81 &info->src_max.in6); in iprange_mt6() 93 &info->dst_min.in6, in iprange_mt6() [all …]
|
| A D | xt_addrtype.c | 94 if (info->source) in addrtype_mt6() 97 if (ret && info->dest) in addrtype_mt6() 118 if (info->source) in addrtype_mt_v0() 120 info->invert_source; in addrtype_mt_v0() 121 if (info->dest) in addrtype_mt_v0() 123 info->invert_dest; in addrtype_mt_v0() 147 if (info->source) in addrtype_mt_v1() 150 if (ret && info->dest) in addrtype_mt_v1() 181 if ((info->source | info->dest) & XT_ADDRTYPE_BLACKHOLE) { in addrtype_mt_checkentry_v1() 185 if ((info->source | info->dest) >= XT_ADDRTYPE_PROHIBIT) { in addrtype_mt_checkentry_v1() [all …]
|
| A D | xt_owner.c | 25 if (info->match & ~XT_OWNER_MASK) in owner_check() 36 if (info->match & XT_OWNER_UID) { in owner_check() 41 (info->uid_max < info->uid_min) || in owner_check() 48 if (info->match & XT_OWNER_GID) { in owner_check() 53 (info->gid_max < info->gid_min) || in owner_check() 71 return (info->match ^ info->invert) == 0; in owner_mt() 72 else if (info->match & info->invert & XT_OWNER_SOCKET) in owner_mt() 83 return ((info->match ^ info->invert) & in owner_mt() 87 if (info->match & XT_OWNER_UID) { in owner_mt() 92 !(info->invert & XT_OWNER_UID)) { in owner_mt() [all …]
|
| A D | xt_l2tp.c | 51 if ((info->flags & XT_L2TP_TYPE) && (info->type != data->type)) in l2tp_match() 54 if ((info->flags & XT_L2TP_VERSION) && (info->version != data->version)) in l2tp_match() 60 (info->tid != data->tid)) in l2tp_match() 65 (info->sid != data->sid)) in l2tp_match() 226 info->flags); in l2tp_mt_check() 234 if ((info->version < 2) || (info->version > 3)) { in l2tp_mt_check() 236 info->version); in l2tp_mt_check() 240 if (info->version == 2) { in l2tp_mt_check() 244 info->tid); in l2tp_mt_check() 250 info->sid); in l2tp_mt_check() [all …]
|
| A D | xt_HMARK.c | 66 hp.b32 = (uports->b32 & info->port_mask.b32) | info->port_set.b32; in hmark_swap_ports() 78 const struct xt_hmark_info *info) in hmark_ct_set_htuple() argument 93 info->src_mask.ip6); in hmark_ct_set_htuple() 95 info->dst_mask.ip6); in hmark_ct_set_htuple() 104 hmark_swap_ports(&t->uports, info); in hmark_ct_set_htuple() 128 return reciprocal_scale(hash, info->hmodulus) + info->hoffset; in hmark_hash() 145 hmark_swap_ports(&t->uports, info); in hmark_set_tuple_ports() 226 skb->mark = hmark_hash(&t, info); in hmark_tg_v6() 303 skb->mark = hmark_hash(&t, info); in hmark_tg_v4() 312 if (!info->hmodulus) in hmark_tg_check() [all …]
|
| /net/bridge/netfilter/ |
| A D | ebt_ip.c | 50 NF_INVF(info, EBT_IP_TOS, info->tos != ih->tos)) in ebt_ip_mt() 54 (ih->saddr & info->smsk) != info->saddr)) in ebt_ip_mt() 57 NF_INVF(info, EBT_IP_DEST, in ebt_ip_mt() 58 (ih->daddr & info->dmsk) != info->daddr)) in ebt_ip_mt() 61 if (NF_INVF(info, EBT_IP_PROTO, info->protocol != ih->protocol)) in ebt_ip_mt() 112 if (info->bitmask & ~EBT_IP_MASK || info->invflags & ~EBT_IP_MASK) in ebt_ip_mt_check() 124 if (info->bitmask & EBT_IP_DPORT && info->dport[0] > info->dport[1]) in ebt_ip_mt_check() 126 if (info->bitmask & EBT_IP_SPORT && info->sport[0] > info->sport[1]) in ebt_ip_mt_check() 132 if (info->icmp_type[0] > info->icmp_type[1] || in ebt_ip_mt_check() 133 info->icmp_code[0] > info->icmp_code[1]) in ebt_ip_mt_check() [all …]
|
| A D | ebt_ip6.c | 56 &info->saddr))) || in ebt_ip6_mt() 60 &info->daddr)))) in ebt_ip6_mt() 70 if (NF_INVF(info, EBT_IP6_PROTO, info->protocol != nexthdr)) in ebt_ip6_mt() 84 dst < info->dport[0] || in ebt_ip6_mt() 85 dst > info->dport[1])) in ebt_ip6_mt() 92 src > info->sport[1])) in ebt_ip6_mt() 113 if (info->bitmask & ~EBT_IP6_MASK || info->invflags & ~EBT_IP6_MASK) in ebt_ip6_mt_check() 125 if (info->bitmask & EBT_IP6_DPORT && info->dport[0] > info->dport[1]) in ebt_ip6_mt_check() 127 if (info->bitmask & EBT_IP6_SPORT && info->sport[0] > info->sport[1]) in ebt_ip6_mt_check() 133 if (info->icmpv6_type[0] > info->icmpv6_type[1] || in ebt_ip6_mt_check() [all …]
|
| A D | ebt_arp.c | 30 NF_INVF(info, EBT_ARP_OPCODE, info->opcode != ah->ar_op)) in ebt_arp_mt() 32 if ((info->bitmask & EBT_ARP_HTYPE) && in ebt_arp_mt() 33 NF_INVF(info, EBT_ARP_HTYPE, info->htype != ah->ar_hrd)) in ebt_arp_mt() 36 NF_INVF(info, EBT_ARP_PTYPE, info->ptype != ah->ar_pro)) in ebt_arp_mt() 56 NF_INVF(info, EBT_ARP_SRC_IP, in ebt_arp_mt() 57 info->saddr != (*sap & info->smsk))) in ebt_arp_mt() 60 NF_INVF(info, EBT_ARP_DST_IP, in ebt_arp_mt() 61 info->daddr != (*dap & info->dmsk))) in ebt_arp_mt() 81 info->smmsk))) in ebt_arp_mt() 93 info->dmmsk))) in ebt_arp_mt() [all …]
|
| A D | ebt_stp.c | 50 c = &info->config; in ebt_filter_config() 56 if (NF_INVF(info, EBT_STP_ROOTPRIO, in ebt_filter_config() 61 if (NF_INVF(info, EBT_STP_ROOTADDR, in ebt_filter_config() 69 if (NF_INVF(info, EBT_STP_ROOTCOST, in ebt_filter_config() 86 if (info->bitmask & EBT_STP_PORT) { in ebt_filter_config() 88 if (NF_INVF(info, EBT_STP_PORT, in ebt_filter_config() 94 if (NF_INVF(info, EBT_STP_MSGAGE, in ebt_filter_config() 100 if (NF_INVF(info, EBT_STP_MAXAGE, in ebt_filter_config() 112 if (NF_INVF(info, EBT_STP_FWDD, in ebt_filter_config() 136 NF_INVF(info, EBT_STP_TYPE, info->type != sp->type)) in ebt_stp_mt() [all …]
|
| A D | ebt_limit.c | 42 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt() 43 if (info->credit > info->credit_cap) in ebt_limit_mt() 44 info->credit = info->credit_cap; in ebt_limit_mt() 46 if (info->credit >= info->cost) { in ebt_limit_mt() 48 info->credit -= info->cost; in ebt_limit_mt() 75 user2credits(info->avg * info->burst) < user2credits(info->avg)) { in ebt_limit_mt_check() 77 info->avg, info->burst); in ebt_limit_mt_check() 82 info->prev = jiffies; in ebt_limit_mt_check() 83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 84 info->credit_cap = user2credits(info->avg * info->burst); in ebt_limit_mt_check() [all …]
|
| /net/devlink/ |
| A D | netlink_gen.h | 23 struct genl_info *info); 30 struct genl_info *info); 33 struct genl_info *info); 55 struct genl_info *info); 61 struct genl_info *info); 65 struct genl_info *info); 67 struct genl_info *info); 73 struct genl_info *info); 102 struct genl_info *info); 106 struct genl_info *info); [all …]
|
| A D | rate.c | 257 info->snd_portid, info->snd_seq, 0, in devlink_nl_rate_get_doit() 258 info->extack); in devlink_nl_rate_get_doit() 281 struct genl_info *info, in devlink_nl_rate_parent_node_set() argument 297 info->extack); in devlink_nl_rate_parent_node_set() 301 info->extack); in devlink_nl_rate_parent_node_set() 326 info->extack); in devlink_nl_rate_parent_node_set() 330 info->extack); in devlink_nl_rate_parent_node_set() 397 info->extack); in devlink_nl_rate_tc_bw_set() 453 rate, info->extack); in devlink_nl_rate_set() 456 rate, info->extack); in devlink_nl_rate_set() [all …]
|
| /net/ieee802154/ |
| A D | nl-mac.c | 187 dev = ieee802154_nl_get_dev(info); in ieee802154_associate_req() 228 dev = ieee802154_nl_get_dev(info); in ieee802154_associate_resp() 261 dev = ieee802154_nl_get_dev(info); in ieee802154_disassociate_req() 313 dev = ieee802154_nl_get_dev(info); in ieee802154_start_req() 375 dev = ieee802154_nl_get_dev(info); in ieee802154_scan_req() 406 dev = ieee802154_nl_get_dev(info); in ieee802154_list_iface() 414 rc = ieee802154_nl_fill_iface(msg, info->snd_portid, info->snd_seq, in ieee802154_list_iface() 421 return genlmsg_reply(msg, info); in ieee802154_list_iface() 465 dev = ieee802154_nl_get_dev(info); in ieee802154_set_macparams() 818 rc = fn(dev, info); in ieee802154_nl_llsec_change() [all …]
|
| /net/dsa/ |
| A D | switch.c | 452 info->vid, info->db); in dsa_switch_host_fdb_add() 480 info->vid, info->db); in dsa_switch_host_fdb_del() 499 return dsa_port_do_fdb_add(dp, info->addr, info->vid, info->db); in dsa_switch_fdb_add() 511 return dsa_port_do_fdb_del(dp, info->addr, info->vid, info->db); in dsa_switch_fdb_del() 526 info->addr, info->vid, in dsa_switch_lag_fdb_add() 544 info->addr, info->vid, in dsa_switch_lag_fdb_del() 568 info->info, info->extack); in dsa_switch_lag_join() 572 info->dp->index, info->lag, in dsa_switch_lag_join() 573 info->info, info->extack); in dsa_switch_lag_join() 586 info->dp->index, info->lag); in dsa_switch_lag_leave() [all …]
|
| /net/core/ |
| A D | netdev-genl.c | 43 hdr = genlmsg_iput(rsp, info); in netdev_nl_dev_fill() 89 struct genl_info info; in netdev_genl_dev_notify() local 242 NL_SET_BAD_ATTR(info->extack, info->attrs[NETDEV_A_NAPI_ID]); in netdev_nl_napi_get_doit() 375 NL_SET_BAD_ATTR(info->extack, info->attrs[NETDEV_A_NAPI_ID]); in netdev_nl_napi_set_doit() 700 i, info); in netdev_nl_stats_by_queue() 708 i, info); in netdev_nl_stats_by_queue() 852 info, ctx); in netdev_nl_qstats_get_dumpit() 864 info, ctx); in netdev_nl_qstats_get_dumpit() 925 priv, info->extack); in netdev_nl_bind_rx_doit() 955 info->extack); in netdev_nl_bind_rx_doit() [all …]
|
| /net/openvswitch/ |
| A D | conntrack.c | 274 if (info) in ovs_ct_update_key() 552 ct = ovs_ct_find_existing(net, &info->zone, info->family, skb, in ovs_ct_executed() 1060 if (info->commit) in ovs_ct_execute() 1133 if (info->nat) { in parse_nat() 1188 if (!info->nat) { in parse_nat() 1205 memcpy(&info->range.max_addr, &info->range.min_addr, in parse_nat() 1211 info->range.max_proto.all = info->range.min_proto.all; in parse_nat() 1339 if (!info->commit && info->mark.mask) { in parse_ct() 1346 if (!info->commit && labels_nonzero(&info->labels.mask)) { in parse_ct() 1493 (info->range.max_proto.all != info->range.min_proto.all && in ovs_ct_nat_to_attr() [all …]
|
| /net/wireless/ |
| A D | nl80211.c | 2977 info = &rdev->wiphy.vendor_commands[i].info; in nl80211_send_wiphy() 2978 if (nla_put(msg, i + 1, sizeof(*info), info)) in nl80211_send_wiphy() 2995 if (nla_put(msg, i + 1, sizeof(*info), info)) in nl80211_send_wiphy() 3320 info->snd_portid, info->snd_seq, 0, in nl80211_get_wiphy() 6422 err = nl80211_parse_tx_bitrate_mask(info, info->attrs, in nl80211_start_ap() 7637 info->snd_portid, info->snd_seq, 0, in nl80211_get_station() 12460 if (info) { in __cfg80211_alloc_vendor_skb() 13367 err = nl80211_parse_tx_bitrate_mask(info, info->attrs, in nl80211_set_tx_bitrate_mask() 13998 err = nl80211_parse_tx_bitrate_mask(info, info->attrs, in nl80211_join_mesh() 18582 info = rdev->int_scan_req ? &rdev->int_scan_req->info : in nl80211_add_scan_req() [all …]
|
| /net/batman-adv/ |
| A D | netlink.c | 417 info->snd_portid, info->snd_seq, 0); in batadv_netlink_get_mesh() 730 msg_head = genlmsg_put(msg, info->snd_portid, info->snd_seq, in batadv_netlink_tp_meter_start() 889 struct genl_info *info) in batadv_netlink_cmd_get_hardif() argument 902 info->snd_portid, info->snd_seq, 0, in batadv_netlink_cmd_get_hardif() 1101 info->snd_portid, info->snd_seq, 0); in batadv_netlink_get_vlan() 1299 struct genl_info *info) in batadv_get_vlan_from_info() argument 1326 struct genl_info *info) in batadv_pre_doit() argument 1357 info); in batadv_pre_doit() 1373 info->user_ptr[1] = vlan; in batadv_pre_doit() 1400 info->user_ptr[1]) { in batadv_post_doit() [all …]
|