Searched refs:info (Results 1 - 25 of 269) sorted by relevance

1234567891011

/net/bridge/netfilter/
H A Debt_ip6.c39 const struct ebt_ip6_info *info = par->matchinfo; local
48 if (info->bitmask & EBT_IP6_TCLASS &&
49 FWINV(info->tclass != ipv6_get_dsfield(ih6), EBT_IP6_TCLASS))
51 if ((info->bitmask & EBT_IP6_SOURCE &&
52 FWINV(ipv6_masked_addr_cmp(&ih6->saddr, &info->smsk,
53 &info->saddr), EBT_IP6_SOURCE)) ||
54 (info->bitmask & EBT_IP6_DEST &&
55 FWINV(ipv6_masked_addr_cmp(&ih6->daddr, &info->dmsk,
56 &info->daddr), EBT_IP6_DEST)))
58 if (info
103 struct ebt_ip6_info *info = par->matchinfo; local
[all...]
H A Debt_limit.c37 struct ebt_limit_info *info = (void *)par->matchinfo; local
41 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY;
42 if (info->credit > info->credit_cap)
43 info->credit = info->credit_cap;
45 if (info->credit >= info->cost) {
47 info
70 struct ebt_limit_info *info = par->matchinfo; local
[all...]
H A Debt_ip.c30 const struct ebt_ip_info *info = par->matchinfo; local
39 if (info->bitmask & EBT_IP_TOS &&
40 FWINV(info->tos != ih->tos, EBT_IP_TOS))
42 if (info->bitmask & EBT_IP_SOURCE &&
43 FWINV((ih->saddr & info->smsk) !=
44 info->saddr, EBT_IP_SOURCE))
46 if ((info->bitmask & EBT_IP_DEST) &&
47 FWINV((ih->daddr & info->dmsk) !=
48 info->daddr, EBT_IP_DEST))
50 if (info
82 const struct ebt_ip_info *info = par->matchinfo; local
[all...]
H A Debt_arp.c21 const struct ebt_arp_info *info = par->matchinfo; local
28 if (info->bitmask & EBT_ARP_OPCODE && FWINV(info->opcode !=
31 if (info->bitmask & EBT_ARP_HTYPE && FWINV(info->htype !=
34 if (info->bitmask & EBT_ARP_PTYPE && FWINV(info->ptype !=
38 if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_GRAT)) {
54 if (info->bitmask & EBT_ARP_SRC_IP &&
55 FWINV(info
105 const struct ebt_arp_info *info = par->matchinfo; local
[all...]
H A Debt_vlan.c34 #define GET_BITMASK(_BIT_MASK_) info->bitmask & _BIT_MASK_
35 #define EXIT_ON_MISMATCH(_MATCH_,_MASK_) {if (!((info->_MATCH_ == _MATCH_)^!!(info->invflags & _MASK_))) return false; }
40 const struct ebt_vlan_info *info = par->matchinfo; local
90 struct ebt_vlan_info *info = par->matchinfo; local
102 if (info->bitmask & ~EBT_VLAN_MASK) {
104 info->bitmask, EBT_VLAN_MASK);
109 if (info->invflags & ~EBT_VLAN_MASK) {
111 info->invflags, EBT_VLAN_MASK);
122 if (!!info
[all...]
H A Debt_pkttype.c18 const struct ebt_pkttype_info *info = par->matchinfo; local
20 return (skb->pkt_type == info->pkt_type) ^ info->invert;
25 const struct ebt_pkttype_info *info = par->matchinfo; local
27 if (info->invert != 0 && info->invert != 1)
H A Debt_mark_m.c18 const struct ebt_mark_m_info *info = par->matchinfo; local
20 if (info->bitmask & EBT_MARK_OR)
21 return !!(skb->mark & info->mask) ^ info->invert;
22 return ((skb->mark & info->mask) == info->mark) ^ info->invert;
27 const struct ebt_mark_m_info *info = par->matchinfo; local
29 if (info->bitmask & ~EBT_MARK_MASK)
31 if ((info
[all...]
H A Debt_802_3.c18 const struct ebt_802_3_info *info = par->matchinfo; local
22 if (info->bitmask & EBT_802_3_SAP) {
23 if (FWINV(info->sap != hdr->llc.ui.ssap, EBT_802_3_SAP))
25 if (FWINV(info->sap != hdr->llc.ui.dsap, EBT_802_3_SAP))
29 if (info->bitmask & EBT_802_3_TYPE) {
32 if (FWINV(info->type != type, EBT_802_3_TYPE))
41 const struct ebt_802_3_info *info = par->matchinfo; local
43 if (info->bitmask & ~EBT_802_3_MASK || info->invflags & ~EBT_802_3_MASK)
/net/netfilter/
H A Dxt_physdev.c29 const struct xt_physdev_info *info = par->matchinfo; local
34 /* Not a bridged IP packet or no info available yet:
39 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) &&
40 !(info->invert & XT_PHYSDEV_OP_BRIDGED))
42 if ((info->bitmask & XT_PHYSDEV_OP_ISIN) &&
43 !(info->invert & XT_PHYSDEV_OP_ISIN))
45 if ((info->bitmask & XT_PHYSDEV_OP_ISOUT) &&
46 !(info->invert & XT_PHYSDEV_OP_ISOUT))
48 if ((info->bitmask & XT_PHYSDEV_OP_IN) &&
49 !(info
89 const struct xt_physdev_info *info = par->matchinfo; local
[all...]
H A Dxt_rateest.c20 const struct xt_rateest_match_info *info = par->matchinfo; local
25 spin_lock_bh(&info->est1->lock);
26 r = &info->est1->rstats;
27 if (info->flags & XT_RATEEST_MATCH_DELTA) {
28 bps1 = info->bps1 >= r->bps ? info->bps1 - r->bps : 0;
29 pps1 = info->pps1 >= r->pps ? info->pps1 - r->pps : 0;
34 spin_unlock_bh(&info->est1->lock);
36 if (info
79 struct xt_rateest_match_info *info = par->matchinfo; local
123 struct xt_rateest_match_info *info = par->matchinfo; local
[all...]
H A Dxt_conntrack.c44 const struct xt_conntrack_mtinfo2 *info,
48 &info->origsrc_addr, &info->origsrc_mask, family);
53 const struct xt_conntrack_mtinfo2 *info,
57 &info->origdst_addr, &info->origdst_mask, family);
62 const struct xt_conntrack_mtinfo2 *info,
66 &info->replsrc_addr, &info->replsrc_mask, family);
71 const struct xt_conntrack_mtinfo2 *info,
43 conntrack_mt_origsrc(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument
52 conntrack_mt_origdst(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument
61 conntrack_mt_replsrc(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument
70 conntrack_mt_repldst(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) argument
79 ct_proto_port_check(const struct xt_conntrack_mtinfo2 *info, const struct nf_conn *ct) argument
123 ct_proto_port_check_v3(const struct xt_conntrack_mtinfo3 *info, const struct nf_conn *ct) argument
168 const struct xt_conntrack_mtinfo2 *info = par->matchinfo; local
251 const struct xt_conntrack_mtinfo1 *info = par->matchinfo; local
259 const struct xt_conntrack_mtinfo2 *info = par->matchinfo; local
267 const struct xt_conntrack_mtinfo3 *info = par->matchinfo; local
[all...]
H A Dxt_owner.c22 struct xt_owner_match_info *info = par->matchinfo; local
25 if ((info->match & (XT_OWNER_UID|XT_OWNER_GID)) &&
34 const struct xt_owner_match_info *info = par->matchinfo; local
38 return (info->match ^ info->invert) == 0;
39 else if (info->match & info->invert & XT_OWNER_SOCKET)
48 return ((info->match ^ info->invert) &
51 if (info
[all...]
H A Dxt_statistic.c34 const struct xt_statistic_info *info = par->matchinfo; local
35 bool ret = info->flags & XT_STATISTIC_INVERT;
38 switch (info->mode) {
40 if ((prandom_u32() & 0x7FFFFFFF) < info->u.random.probability)
45 oval = atomic_read(&info->master->count);
46 nval = (oval == info->u.nth.every) ? 0 : oval + 1;
47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval);
58 struct xt_statistic_info *info = par->matchinfo; local
60 if (info->mode > XT_STATISTIC_MODE_MAX ||
61 info
74 const struct xt_statistic_info *info = par->matchinfo; local
[all...]
H A Dxt_devgroup.c24 const struct xt_devgroup_info *info = par->matchinfo; local
26 if (info->flags & XT_DEVGROUP_MATCH_SRC &&
27 (((info->src_group ^ par->in->group) & info->src_mask ? 1 : 0) ^
28 ((info->flags & XT_DEVGROUP_INVERT_SRC) ? 1 : 0)))
31 if (info->flags & XT_DEVGROUP_MATCH_DST &&
32 (((info->dst_group ^ par->out->group) & info->dst_mask ? 1 : 0) ^
33 ((info->flags & XT_DEVGROUP_INVERT_DST) ? 1 : 0)))
41 const struct xt_devgroup_info *info local
[all...]
H A Dxt_iprange.c22 const struct xt_iprange_mtinfo *info = par->matchinfo; local
26 if (info->flags & IPRANGE_SRC) {
27 m = ntohl(iph->saddr) < ntohl(info->src_min.ip);
28 m |= ntohl(iph->saddr) > ntohl(info->src_max.ip);
29 m ^= !!(info->flags & IPRANGE_SRC_INV);
33 (info->flags & IPRANGE_SRC_INV) ? "(INV) " : "",
34 &info->src_min.ip,
35 &info->src_max.ip);
39 if (info->flags & IPRANGE_DST) {
40 m = ntohl(iph->daddr) < ntohl(info
71 const struct xt_iprange_mtinfo *info = par->matchinfo; local
[all...]
H A Dxt_SECMARK.c36 const struct xt_secmark_target_info *info = par->targinfo; local
38 BUG_ON(info->mode != mode);
42 secmark = info->secid;
52 static int checkentry_lsm(struct xt_secmark_target_info *info) argument
56 info->secctx[SECMARK_SECCTX_MAX - 1] = '\0';
57 info->secid = 0;
59 err = security_secctx_to_secid(info->secctx, strlen(info->secctx),
60 &info->secid);
63 pr_info("invalid security context \'%s\'\n", info
84 struct xt_secmark_target_info *info = par->targinfo; local
[all...]
H A Dxt_set.c54 const struct xt_set_info_match_v0 *info = par->matchinfo; local
55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim,
56 info->match_set.u.compat.flags, 0, UINT_MAX);
58 return match_set(info->match_set.index, skb, par, &opt,
59 info->match_set.u.compat.flags & IPSET_INV_MATCH);
63 compat_flags(struct xt_set_info_v0 *info) argument
68 info->u.compat.dim = IPSET_DIM_ZERO;
69 if (info->u.flags[0] & IPSET_MATCH_INV)
70 info->u.compat.flags |= IPSET_INV_MATCH;
71 for (i = 0; i < IPSET_DIM_MAX-1 && info
81 struct xt_set_info_match_v0 *info = par->matchinfo; local
106 struct xt_set_info_match_v0 *info = par->matchinfo; local
116 const struct xt_set_info_match_v1 *info = par->matchinfo; local
130 struct xt_set_info_match_v1 *info = par->matchinfo; local
152 struct xt_set_info_match_v1 *info = par->matchinfo; local
160 match_counter(u64 counter, const struct ip_set_counter_match *info) argument
180 const struct xt_set_info_match_v3 *info = par->matchinfo; local
208 const struct xt_set_info_target_v0 *info = par->targinfo; local
225 struct xt_set_info_target_v0 *info = par->targinfo; local
267 const struct xt_set_info_target_v0 *info = par->targinfo; local
280 const struct xt_set_info_target_v1 *info = par->targinfo; local
297 const struct xt_set_info_target_v1 *info = par->targinfo; local
335 const struct xt_set_info_target_v1 *info = par->targinfo; local
348 const struct xt_set_info_target_v2 *info = par->targinfo; local
374 const struct xt_set_info_target_v3 *info = par->targinfo; local
417 const struct xt_set_info_target_v3 *info = par->targinfo; local
492 const struct xt_set_info_target_v3 *info = par->targinfo; local
[all...]
H A Dxt_IDLETIMER.c279 static int idletimer_tg_create(struct idletimer_tg_info *info) argument
283 info->timer = kmalloc(sizeof(*info->timer), GFP_KERNEL);
284 if (!info->timer) {
289 sysfs_attr_init(&info->timer->attr.attr);
290 info->timer->attr.attr.name = kstrdup(info->label, GFP_KERNEL);
291 if (!info->timer->attr.attr.name) {
295 info->timer->attr.attr.mode = S_IRUGO;
296 info
340 reset_timer(const struct idletimer_tg_info *info, struct sk_buff *skb) argument
382 const struct idletimer_tg_info *info = par->targinfo; local
405 struct idletimer_tg_info *info = par->targinfo; local
446 const struct idletimer_tg_info *info = par->targinfo; local
[all...]
H A Dxt_hl.c30 const struct ipt_ttl_info *info = par->matchinfo; local
33 switch (info->mode) {
35 return ttl == info->ttl;
37 return ttl != info->ttl;
39 return ttl < info->ttl;
41 return ttl > info->ttl;
49 const struct ip6t_hl_info *info = par->matchinfo; local
52 switch (info->mode) {
54 return ip6h->hop_limit == info->hop_limit;
56 return ip6h->hop_limit != info
[all...]
H A Dxt_dscp.c30 const struct xt_dscp_info *info = par->matchinfo; local
33 return (dscp == info->dscp) ^ !!info->invert;
39 const struct xt_dscp_info *info = par->matchinfo; local
42 return (dscp == info->dscp) ^ !!info->invert;
47 const struct xt_dscp_info *info = par->matchinfo; local
49 if (info->dscp > XT_DSCP_MAX) {
50 pr_info("dscp %x out of range\n", info->dscp);
59 const struct xt_tos_match_info *info local
[all...]
/net/wireless/
H A Dethtool.c6 void cfg80211_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) argument
10 strlcpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name,
11 sizeof(info->driver));
13 strlcpy(info->version, init_utsname()->release, sizeof(info->version));
16 strlcpy(info->fw_version, wdev->wiphy->fw_version,
17 sizeof(info->fw_version));
19 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
21 strlcpy(info
[all...]
H A Dwext-compat.h8 struct iw_request_info *info,
11 struct iw_request_info *info,
14 struct iw_request_info *info,
17 struct iw_request_info *info,
20 struct iw_request_info *info,
23 struct iw_request_info *info,
27 struct iw_request_info *info,
30 struct iw_request_info *info,
33 struct iw_request_info *info,
36 struct iw_request_info *info,
[all...]
H A Dlib80211.c44 static void lib80211_crypt_deinit_entries(struct lib80211_crypt_info *info,
46 static void lib80211_crypt_quiescing(struct lib80211_crypt_info *info);
49 int lib80211_crypt_info_init(struct lib80211_crypt_info *info, char *name, argument
52 memset(info, 0, sizeof(*info));
54 info->name = name;
55 info->lock = lock;
57 INIT_LIST_HEAD(&info->crypt_deinit_list);
58 setup_timer(&info->crypt_deinit_timer, lib80211_crypt_deinit_handler,
59 (unsigned long)info);
65 lib80211_crypt_info_free(struct lib80211_crypt_info *info) argument
87 lib80211_crypt_deinit_entries(struct lib80211_crypt_info *info, int force) argument
110 lib80211_crypt_quiescing(struct lib80211_crypt_info *info) argument
121 struct lib80211_crypt_info *info = (struct lib80211_crypt_info *)data; local
136 lib80211_crypt_delayed_deinit(struct lib80211_crypt_info *info, struct lib80211_crypt_data **crypt) argument
[all...]
/net/ieee802154/
H A Dieee802154.h45 struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
47 int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info);
52 int ieee802154_list_phy(struct sk_buff *skb, struct genl_info *info);
54 int ieee802154_add_iface(struct sk_buff *skb, struct genl_info *info);
55 int ieee802154_del_iface(struct sk_buff *skb, struct genl_info *info);
62 int ieee802154_associate_req(struct sk_buff *skb, struct genl_info *info);
63 int ieee802154_associate_resp(struct sk_buff *skb, struct genl_info *info);
64 int ieee802154_disassociate_req(struct sk_buff *skb, struct genl_info *info);
65 int ieee802154_scan_req(struct sk_buff *skb, struct genl_info *info);
66 int ieee802154_start_req(struct sk_buff *skb, struct genl_info *info);
[all...]
/net/wimax/
H A Dop-state-get.c44 int wimax_gnl_doit_state_get(struct sk_buff *skb, struct genl_info *info) argument
49 d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info);
51 if (info->attrs[WIMAX_GNL_STGET_IFIDX] == NULL) {
55 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_STGET_IFIDX]);
56 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex);
63 d_fnend(3, NULL, "(skb %p info %p) = %d\n", skb, info, result);

Completed in 255 milliseconds

1234567891011