Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 247) sorted by relevance

12345678910

/net/netfilter/
Dxt_set.c54 const struct xt_set_info_match_v0 *info = par->matchinfo; in set_match_v0() local
55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim, in set_match_v0()
56 info->match_set.u.compat.flags, 0, UINT_MAX); in set_match_v0()
58 return match_set(info->match_set.index, skb, par, &opt, in set_match_v0()
59 info->match_set.u.compat.flags & IPSET_INV_MATCH); in set_match_v0()
63 compat_flags(struct xt_set_info_v0 *info) in compat_flags() argument
68 info->u.compat.dim = IPSET_DIM_ZERO; in compat_flags()
69 if (info->u.flags[0] & IPSET_MATCH_INV) in compat_flags()
70 info->u.compat.flags |= IPSET_INV_MATCH; in compat_flags()
71 for (i = 0; i < IPSET_DIM_MAX-1 && info->u.flags[i]; i++) { in compat_flags()
[all …]
Dxt_conntrack.c44 const struct xt_conntrack_mtinfo2 *info, in conntrack_mt_origsrc() argument
48 &info->origsrc_addr, &info->origsrc_mask, family); in conntrack_mt_origsrc()
53 const struct xt_conntrack_mtinfo2 *info, in conntrack_mt_origdst() argument
57 &info->origdst_addr, &info->origdst_mask, family); in conntrack_mt_origdst()
62 const struct xt_conntrack_mtinfo2 *info, in conntrack_mt_replsrc() argument
66 &info->replsrc_addr, &info->replsrc_mask, family); in conntrack_mt_replsrc()
71 const struct xt_conntrack_mtinfo2 *info, in conntrack_mt_repldst() argument
75 &info->repldst_addr, &info->repldst_mask, family); in conntrack_mt_repldst()
79 ct_proto_port_check(const struct xt_conntrack_mtinfo2 *info, in ct_proto_port_check() argument
85 if ((info->match_flags & XT_CONNTRACK_PROTO) && in ct_proto_port_check()
[all …]
Dxt_rateest.c20 const struct xt_rateest_match_info *info = par->matchinfo; in xt_rateest_mt() local
25 spin_lock_bh(&info->est1->lock); in xt_rateest_mt()
26 r = &info->est1->rstats; in xt_rateest_mt()
27 if (info->flags & XT_RATEEST_MATCH_DELTA) { in xt_rateest_mt()
28 bps1 = info->bps1 >= r->bps ? info->bps1 - r->bps : 0; in xt_rateest_mt()
29 pps1 = info->pps1 >= r->pps ? info->pps1 - r->pps : 0; in xt_rateest_mt()
34 spin_unlock_bh(&info->est1->lock); in xt_rateest_mt()
36 if (info->flags & XT_RATEEST_MATCH_ABS) { in xt_rateest_mt()
37 bps2 = info->bps2; in xt_rateest_mt()
38 pps2 = info->pps2; in xt_rateest_mt()
[all …]
Dxt_physdev.c28 const struct xt_physdev_info *info = par->matchinfo; in physdev_mt() local
38 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt()
39 !(info->invert & XT_PHYSDEV_OP_BRIDGED)) in physdev_mt()
41 if ((info->bitmask & XT_PHYSDEV_OP_ISIN) && in physdev_mt()
42 !(info->invert & XT_PHYSDEV_OP_ISIN)) in physdev_mt()
44 if ((info->bitmask & XT_PHYSDEV_OP_ISOUT) && in physdev_mt()
45 !(info->invert & XT_PHYSDEV_OP_ISOUT)) in physdev_mt()
47 if ((info->bitmask & XT_PHYSDEV_OP_IN) && in physdev_mt()
48 !(info->invert & XT_PHYSDEV_OP_IN)) in physdev_mt()
50 if ((info->bitmask & XT_PHYSDEV_OP_OUT) && in physdev_mt()
[all …]
Dxt_IDLETIMER.c279 static int idletimer_tg_create(struct idletimer_tg_info *info) in idletimer_tg_create() argument
283 info->timer = kmalloc(sizeof(*info->timer), GFP_KERNEL); in idletimer_tg_create()
284 if (!info->timer) { in idletimer_tg_create()
289 info->timer->attr.attr.name = kstrdup(info->label, GFP_KERNEL); in idletimer_tg_create()
290 if (!info->timer->attr.attr.name) { in idletimer_tg_create()
294 info->timer->attr.attr.mode = S_IRUGO; in idletimer_tg_create()
295 info->timer->attr.show = idletimer_tg_show; in idletimer_tg_create()
297 ret = sysfs_create_file(idletimer_tg_kobj, &info->timer->attr.attr); in idletimer_tg_create()
303 list_add(&info->timer->entry, &idletimer_tg_list); in idletimer_tg_create()
305 setup_timer(&info->timer->timer, idletimer_tg_expired, in idletimer_tg_create()
[all …]
Dxt_iprange.c22 const struct xt_iprange_mtinfo *info = par->matchinfo; in iprange_mt4() local
26 if (info->flags & IPRANGE_SRC) { in iprange_mt4()
27 m = ntohl(iph->saddr) < ntohl(info->src_min.ip); in iprange_mt4()
28 m |= ntohl(iph->saddr) > ntohl(info->src_max.ip); in iprange_mt4()
29 m ^= !!(info->flags & IPRANGE_SRC_INV); in iprange_mt4()
33 (info->flags & IPRANGE_SRC_INV) ? "(INV) " : "", in iprange_mt4()
34 &info->src_min.ip, in iprange_mt4()
35 &info->src_max.ip); in iprange_mt4()
39 if (info->flags & IPRANGE_DST) { in iprange_mt4()
40 m = ntohl(iph->daddr) < ntohl(info->dst_min.ip); in iprange_mt4()
[all …]
Dxt_addrtype.c104 const struct sk_buff *skb, const struct xt_addrtype_info_v1 *info) in addrtype_mt6() argument
109 if (info->source) in addrtype_mt6()
110 ret &= match_type6(net, dev, &iph->saddr, info->source) ^ in addrtype_mt6()
111 (info->flags & XT_ADDRTYPE_INVERT_SOURCE); in addrtype_mt6()
112 if (ret && info->dest) in addrtype_mt6()
113 ret &= match_type6(net, dev, &iph->daddr, info->dest) ^ in addrtype_mt6()
114 !!(info->flags & XT_ADDRTYPE_INVERT_DEST); in addrtype_mt6()
129 const struct xt_addrtype_info *info = par->matchinfo; in addrtype_mt_v0() local
133 if (info->source) in addrtype_mt_v0()
134 ret &= match_type(net, NULL, iph->saddr, info->source) ^ in addrtype_mt_v0()
[all …]
Dxt_HMARK.c62 const struct xt_hmark_info *info) in hmark_swap_ports() argument
67 hp.b32 = (uports->b32 & info->port_mask.b32) | info->port_set.b32; in hmark_swap_ports()
79 const struct xt_hmark_info *info) in hmark_ct_set_htuple() argument
94 info->src_mask.ip6); in hmark_ct_set_htuple()
96 info->dst_mask.ip6); in hmark_ct_set_htuple()
98 if (info->flags & XT_HMARK_FLAG(XT_HMARK_METHOD_L3)) in hmark_ct_set_htuple()
105 hmark_swap_ports(&t->uports, info); in hmark_ct_set_htuple()
117 hmark_hash(struct hmark_tuple *t, const struct xt_hmark_info *info) in hmark_hash() argument
126 hash = jhash_3words(src, dst, t->uports.v32, info->hashrnd); in hmark_hash()
127 hash = hash ^ (t->proto & info->proto_mask); in hmark_hash()
[all …]
Dxt_CT.c39 const struct xt_ct_target_info *info = par->targinfo; in xt_ct_target_v0() local
40 struct nf_conn *ct = info->ct; in xt_ct_target_v0()
48 const struct xt_ct_target_info_v1 *info = par->targinfo; in xt_ct_target_v1() local
49 struct nf_conn *ct = info->ct; in xt_ct_target_v1()
182 struct xt_ct_target_info_v1 *info) in xt_ct_tg_check() argument
188 if (info->flags & XT_CT_NOTRACK) { in xt_ct_tg_check()
195 if (info->zone) in xt_ct_tg_check()
204 ct = nf_conntrack_alloc(par->net, info->zone, &t, &t, GFP_KERNEL); in xt_ct_tg_check()
210 if ((info->ct_events || info->exp_events) && in xt_ct_tg_check()
211 !nf_ct_ecache_ext_add(ct, info->ct_events, info->exp_events, in xt_ct_tg_check()
[all …]
Dxt_SECMARK.c36 const struct xt_secmark_target_info *info = par->targinfo; in secmark_tg() local
38 BUG_ON(info->mode != mode); in secmark_tg()
42 secmark = info->secid; in secmark_tg()
52 static int checkentry_lsm(struct xt_secmark_target_info *info) in checkentry_lsm() argument
56 info->secctx[SECMARK_SECCTX_MAX - 1] = '\0'; in checkentry_lsm()
57 info->secid = 0; in checkentry_lsm()
59 err = security_secctx_to_secid(info->secctx, strlen(info->secctx), in checkentry_lsm()
60 &info->secid); in checkentry_lsm()
63 pr_info("invalid security context \'%s\'\n", info->secctx); in checkentry_lsm()
67 if (!info->secid) { in checkentry_lsm()
[all …]
Dxt_sctp.c41 const struct xt_sctp_info *info, in match_packet() argument
47 int chunk_match_type = info->chunk_match_type; in match_packet()
48 const struct xt_sctp_flag_info *flag_info = info->flag_info; in match_packet()
49 int flag_count = info->flag_count; in match_packet()
56 SCTP_CHUNKMAP_COPY(chunkmapcopy, info->chunkmap); in match_packet()
75 if (SCTP_CHUNKMAP_IS_SET(info->chunkmap, sch->type)) { in match_packet()
120 const struct xt_sctp_info *info = par->matchinfo; in sctp_mt() local
137 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
138 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
139 XT_SCTP_SRC_PORTS, info->flags, info->invflags) in sctp_mt()
[all …]
Dxt_time.c157 const struct xt_time_info *info = par->matchinfo; in time_mt() local
177 if (info->flags & XT_TIME_LOCAL_TZ) in time_mt()
190 if (stamp < info->date_start || stamp > info->date_stop) in time_mt()
195 if (info->daytime_start < info->daytime_stop) { in time_mt()
196 if (packet_time < info->daytime_start || in time_mt()
197 packet_time > info->daytime_stop) in time_mt()
200 if (packet_time < info->daytime_start && in time_mt()
201 packet_time > info->daytime_stop) in time_mt()
212 if ((info->flags & XT_TIME_CONTIGUOUS) && in time_mt()
213 packet_time <= info->daytime_stop) in time_mt()
[all …]
Dxt_HL.c32 const struct ipt_TTL_info *info = par->targinfo; in ttl_tg() local
40 switch (info->mode) { in ttl_tg()
42 new_ttl = info->ttl; in ttl_tg()
45 new_ttl = iph->ttl + info->ttl; in ttl_tg()
50 new_ttl = iph->ttl - info->ttl; in ttl_tg()
72 const struct ip6t_HL_info *info = par->targinfo; in hl_tg6() local
80 switch (info->mode) { in hl_tg6()
82 new_hl = info->hop_limit; in hl_tg6()
85 new_hl = ip6h->hop_limit + info->hop_limit; in hl_tg6()
90 new_hl = ip6h->hop_limit - info->hop_limit; in hl_tg6()
[all …]
/net/bridge/netfilter/
Debt_ip6.c39 const struct ebt_ip6_info *info = par->matchinfo; in ebt_ip6_mt() local
48 if (info->bitmask & EBT_IP6_TCLASS && in ebt_ip6_mt()
49 FWINV(info->tclass != ipv6_get_dsfield(ih6), EBT_IP6_TCLASS)) in ebt_ip6_mt()
51 if (FWINV(ipv6_masked_addr_cmp(&ih6->saddr, &info->smsk, in ebt_ip6_mt()
52 &info->saddr), EBT_IP6_SOURCE) || in ebt_ip6_mt()
53 FWINV(ipv6_masked_addr_cmp(&ih6->daddr, &info->dmsk, in ebt_ip6_mt()
54 &info->daddr), EBT_IP6_DEST)) in ebt_ip6_mt()
56 if (info->bitmask & EBT_IP6_PROTO) { in ebt_ip6_mt()
64 if (FWINV(info->protocol != nexthdr, EBT_IP6_PROTO)) in ebt_ip6_mt()
66 if (!(info->bitmask & ( EBT_IP6_DPORT | in ebt_ip6_mt()
[all …]
Debt_ip.c30 const struct ebt_ip_info *info = par->matchinfo; in ebt_ip_mt() local
39 if (info->bitmask & EBT_IP_TOS && in ebt_ip_mt()
40 FWINV(info->tos != ih->tos, EBT_IP_TOS)) in ebt_ip_mt()
42 if (info->bitmask & EBT_IP_SOURCE && in ebt_ip_mt()
43 FWINV((ih->saddr & info->smsk) != in ebt_ip_mt()
44 info->saddr, EBT_IP_SOURCE)) in ebt_ip_mt()
46 if ((info->bitmask & EBT_IP_DEST) && in ebt_ip_mt()
47 FWINV((ih->daddr & info->dmsk) != in ebt_ip_mt()
48 info->daddr, EBT_IP_DEST)) in ebt_ip_mt()
50 if (info->bitmask & EBT_IP_PROTO) { in ebt_ip_mt()
[all …]
Debt_limit.c37 struct ebt_limit_info *info = (void *)par->matchinfo; in ebt_limit_mt() local
41 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt()
42 if (info->credit > info->credit_cap) in ebt_limit_mt()
43 info->credit = info->credit_cap; in ebt_limit_mt()
45 if (info->credit >= info->cost) { in ebt_limit_mt()
47 info->credit -= info->cost; in ebt_limit_mt()
70 struct ebt_limit_info *info = par->matchinfo; in ebt_limit_mt_check() local
73 if (info->burst == 0 || in ebt_limit_mt_check()
74 user2credits(info->avg * info->burst) < user2credits(info->avg)) { in ebt_limit_mt_check()
76 info->avg, info->burst); in ebt_limit_mt_check()
[all …]
Debt_arp.c21 const struct ebt_arp_info *info = par->matchinfo; in ebt_arp_mt() local
28 if (info->bitmask & EBT_ARP_OPCODE && FWINV(info->opcode != in ebt_arp_mt()
31 if (info->bitmask & EBT_ARP_HTYPE && FWINV(info->htype != in ebt_arp_mt()
34 if (info->bitmask & EBT_ARP_PTYPE && FWINV(info->ptype != in ebt_arp_mt()
38 if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_GRAT)) { in ebt_arp_mt()
54 if (info->bitmask & EBT_ARP_SRC_IP && in ebt_arp_mt()
55 FWINV(info->saddr != (*sap & info->smsk), EBT_ARP_SRC_IP)) in ebt_arp_mt()
57 if (info->bitmask & EBT_ARP_DST_IP && in ebt_arp_mt()
58 FWINV(info->daddr != (*dap & info->dmsk), EBT_ARP_DST_IP)) in ebt_arp_mt()
60 if (info->bitmask & EBT_ARP_GRAT && in ebt_arp_mt()
[all …]
/net/l2tp/
Dl2tp_netlink.c46 static struct l2tp_session *l2tp_nl_session_find(struct genl_info *info) in l2tp_nl_session_find() argument
53 struct net *net = genl_info_net(info); in l2tp_nl_session_find()
55 if (info->attrs[L2TP_ATTR_IFNAME]) { in l2tp_nl_session_find()
56 ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); in l2tp_nl_session_find()
58 } else if ((info->attrs[L2TP_ATTR_SESSION_ID]) && in l2tp_nl_session_find()
59 (info->attrs[L2TP_ATTR_CONN_ID])) { in l2tp_nl_session_find()
60 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_session_find()
61 session_id = nla_get_u32(info->attrs[L2TP_ATTR_SESSION_ID]); in l2tp_nl_session_find()
70 static int l2tp_nl_cmd_noop(struct sk_buff *skb, struct genl_info *info) in l2tp_nl_cmd_noop() argument
82 hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, in l2tp_nl_cmd_noop()
[all …]
/net/wireless/
Dlib80211.c44 static void lib80211_crypt_deinit_entries(struct lib80211_crypt_info *info,
46 static void lib80211_crypt_quiescing(struct lib80211_crypt_info *info);
81 int lib80211_crypt_info_init(struct lib80211_crypt_info *info, char *name, in lib80211_crypt_info_init() argument
84 memset(info, 0, sizeof(*info)); in lib80211_crypt_info_init()
86 info->name = name; in lib80211_crypt_info_init()
87 info->lock = lock; in lib80211_crypt_info_init()
89 INIT_LIST_HEAD(&info->crypt_deinit_list); in lib80211_crypt_info_init()
90 setup_timer(&info->crypt_deinit_timer, lib80211_crypt_deinit_handler, in lib80211_crypt_info_init()
91 (unsigned long)info); in lib80211_crypt_info_init()
97 void lib80211_crypt_info_free(struct lib80211_crypt_info *info) in lib80211_crypt_info_free() argument
[all …]
Dnl80211.c29 struct genl_info *info,
34 struct genl_info *info);
36 struct genl_info *info);
203 cfg80211_get_dev_from_info(struct net *netns, struct genl_info *info) in cfg80211_get_dev_from_info() argument
208 rdev = __cfg80211_rdev_from_attrs(netns, info->attrs); in cfg80211_get_dev_from_info()
689 static int nl80211_parse_key_old(struct genl_info *info, struct key_parse *k) in nl80211_parse_key_old() argument
691 if (info->attrs[NL80211_ATTR_KEY_DATA]) { in nl80211_parse_key_old()
692 k->p.key = nla_data(info->attrs[NL80211_ATTR_KEY_DATA]); in nl80211_parse_key_old()
693 k->p.key_len = nla_len(info->attrs[NL80211_ATTR_KEY_DATA]); in nl80211_parse_key_old()
696 if (info->attrs[NL80211_ATTR_KEY_SEQ]) { in nl80211_parse_key_old()
[all …]
/net/irda/
Dirlap_frame.c173 struct irlap_info *info) in irlap_recv_snrm_cmd() argument
181 info->caddr = frame->ncaddr & 0xFE; in irlap_recv_snrm_cmd()
184 if ((info->caddr == 0x00) || (info->caddr == 0xfe)) { in irlap_recv_snrm_cmd()
191 info->daddr = le32_to_cpu(frame->saddr); in irlap_recv_snrm_cmd()
192 info->saddr = le32_to_cpu(frame->daddr); in irlap_recv_snrm_cmd()
195 if (info->saddr != self->saddr) { in irlap_recv_snrm_cmd()
200 irlap_do_event(self, RECV_SNRM_CMD, skb, info); in irlap_recv_snrm_cmd()
323 __u8 *info; in irlap_send_discovery_xid_frame() local
386 info = skb_put(tx_skb, 2); in irlap_send_discovery_xid_frame()
387 info[0] = discovery->data.hints[0]; in irlap_send_discovery_xid_frame()
[all …]
Dirlap_event.c51 struct sk_buff *skb, struct irlap_info *info);
53 struct sk_buff *skb, struct irlap_info *info);
55 struct sk_buff *skb, struct irlap_info *info);
57 struct sk_buff *skb, struct irlap_info *info);
59 struct sk_buff *skb, struct irlap_info *info);
61 struct sk_buff *skb, struct irlap_info *info);
63 struct sk_buff *skb, struct irlap_info *info);
65 struct sk_buff *skb, struct irlap_info *info);
67 struct sk_buff *skb, struct irlap_info *info);
69 struct sk_buff *skb, struct irlap_info *info);
[all …]
/net/ieee802154/
Dnl-mac.c286 static struct net_device *ieee802154_nl_get_dev(struct genl_info *info) in ieee802154_nl_get_dev() argument
290 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { in ieee802154_nl_get_dev()
292 nla_strlcpy(name, info->attrs[IEEE802154_ATTR_DEV_NAME], in ieee802154_nl_get_dev()
295 } else if (info->attrs[IEEE802154_ATTR_DEV_INDEX]) in ieee802154_nl_get_dev()
297 nla_get_u32(info->attrs[IEEE802154_ATTR_DEV_INDEX])); in ieee802154_nl_get_dev()
313 struct genl_info *info) in ieee802154_associate_req() argument
320 if (!info->attrs[IEEE802154_ATTR_CHANNEL] || in ieee802154_associate_req()
321 !info->attrs[IEEE802154_ATTR_COORD_PAN_ID] || in ieee802154_associate_req()
322 (!info->attrs[IEEE802154_ATTR_COORD_HW_ADDR] && in ieee802154_associate_req()
323 !info->attrs[IEEE802154_ATTR_COORD_SHORT_ADDR]) || in ieee802154_associate_req()
[all …]
/net/batman-adv/
Dvis.c37 struct batadv_vis_info *info; in batadv_free_info() local
41 info = container_of(ref, struct batadv_vis_info, refcount); in batadv_free_info()
42 bat_priv = info->bat_priv; in batadv_free_info()
44 list_del_init(&info->send_list); in batadv_free_info()
46 list_for_each_entry_safe(entry, tmp, &info->recv_list, list) { in batadv_free_info()
52 kfree_skb(info->skb_packet); in batadv_free_info()
53 kfree(info); in batadv_free_info()
217 struct batadv_vis_info *info; in batadv_vis_seq_print_text_bucket() local
226 hlist_for_each_entry_rcu(info, head, hash_entry) { in batadv_vis_seq_print_text_bucket()
227 packet = (struct batadv_vis_packet *)info->skb_packet->data; in batadv_vis_seq_print_text_bucket()
[all …]
/net/mac80211/
Dstatus.c27 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); in ieee80211_tx_status_irqsafe() local
31 skb_queue_tail(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS ? in ieee80211_tx_status_irqsafe()
49 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); in ieee80211_handle_filtered_frame() local
61 memset(&info->control, 0, sizeof(info->control)); in ieee80211_handle_filtered_frame()
63 info->control.jiffies = jiffies; in ieee80211_handle_filtered_frame()
64 info->control.vif = &sta->sdata->vif; in ieee80211_handle_filtered_frame()
65 info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING | in ieee80211_handle_filtered_frame()
67 info->flags &= ~IEEE80211_TX_TEMPORARY_FLAGS; in ieee80211_handle_filtered_frame()
151 !(info->flags & IEEE80211_TX_INTFL_RETRIED)) { in ieee80211_handle_filtered_frame()
153 info->flags |= IEEE80211_TX_INTFL_RETRIED; in ieee80211_handle_filtered_frame()
[all …]

12345678910