/net/core/ |
D | flow_dissector.c | 637 static inline void __flow_hash_consistentify(struct flow_keys *keys) in __flow_hash_consistentify() argument 641 switch (keys->control.addr_type) { in __flow_hash_consistentify() 643 addr_diff = (__force u32)keys->addrs.v4addrs.dst - in __flow_hash_consistentify() 644 (__force u32)keys->addrs.v4addrs.src; in __flow_hash_consistentify() 647 ((__force u16)keys->ports.dst < in __flow_hash_consistentify() 648 (__force u16)keys->ports.src))) { in __flow_hash_consistentify() 649 swap(keys->addrs.v4addrs.src, keys->addrs.v4addrs.dst); in __flow_hash_consistentify() 650 swap(keys->ports.src, keys->ports.dst); in __flow_hash_consistentify() 654 addr_diff = memcmp(&keys->addrs.v6addrs.dst, in __flow_hash_consistentify() 655 &keys->addrs.v6addrs.src, in __flow_hash_consistentify() [all …]
|
/net/sched/ |
D | act_pedit.c | 44 struct tc_pedit_key *keys = NULL; in tcf_pedit_init() local 69 keys = kmalloc(ksize, GFP_KERNEL); in tcf_pedit_init() 70 if (keys == NULL) { in tcf_pedit_init() 83 keys = kmalloc(ksize, GFP_KERNEL); in tcf_pedit_init() 84 if (keys == NULL) in tcf_pedit_init() 92 if (keys) { in tcf_pedit_init() 94 p->tcfp_keys = keys; in tcf_pedit_init() 97 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init() 107 struct tc_pedit_key *keys = p->tcfp_keys; in tcf_pedit_cleanup() local 108 kfree(keys); in tcf_pedit_cleanup() [all …]
|
D | cls_flower.c | 548 #define FL_KEY_SET(keys, cnt, id, member) \ argument 550 keys[cnt].key_id = id; \ 551 keys[cnt].offset = FL_KEY_MEMBER_OFFSET(member); \ 555 #define FL_KEY_SET_IF_MASKED(mask, keys, cnt, id, member) \ argument 558 FL_KEY_SET(keys, cnt, id, member); \ 564 struct flow_dissector_key keys[FLOW_DISSECTOR_KEY_MAX]; in fl_init_dissector() local 567 FL_KEY_SET(keys, cnt, FLOW_DISSECTOR_KEY_CONTROL, control); in fl_init_dissector() 568 FL_KEY_SET(keys, cnt, FLOW_DISSECTOR_KEY_BASIC, basic); in fl_init_dissector() 569 FL_KEY_SET_IF_MASKED(&mask->key, keys, cnt, in fl_init_dissector() 571 FL_KEY_SET_IF_MASKED(&mask->key, keys, cnt, in fl_init_dissector() [all …]
|
D | sch_choke.c | 140 struct flow_keys_digest keys; member 175 make_flow_keys_digest(&choke_skb_cb(skb1)->keys, &temp); in choke_match_flow() 181 make_flow_keys_digest(&choke_skb_cb(skb2)->keys, &temp); in choke_match_flow() 184 return !memcmp(&choke_skb_cb(skb1)->keys, in choke_match_flow() 185 &choke_skb_cb(skb2)->keys, in choke_match_flow() 186 sizeof(choke_skb_cb(skb1)->keys)); in choke_match_flow()
|
D | cls_flow.c | 310 u32 keys[FLOW_KEY_MAX + 1]; in flow_classify() local 323 keys[n] = flow_key_get(skb, key, &flow_keys); in flow_classify() 327 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify() 329 classid = keys[0]; in flow_classify()
|
D | Kconfig | 459 a configurable combination of packet keys. This is mostly useful 492 a configurable combination of packet keys and masks.
|
/net/wireless/ |
D | wext-compat.c | 413 if (!wdev->wext.keys) { in __cfg80211_set_encryption() 414 wdev->wext.keys = kzalloc(sizeof(*wdev->wext.keys), in __cfg80211_set_encryption() 416 if (!wdev->wext.keys) in __cfg80211_set_encryption() 419 wdev->wext.keys->params[i].key = in __cfg80211_set_encryption() 420 wdev->wext.keys->data[i]; in __cfg80211_set_encryption() 468 memset(wdev->wext.keys->data[idx], 0, in __cfg80211_set_encryption() 469 sizeof(wdev->wext.keys->data[idx])); in __cfg80211_set_encryption() 470 wdev->wext.keys->params[idx].key_len = 0; in __cfg80211_set_encryption() 471 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption() 507 wdev->wext.keys->params[idx] = *params; in __cfg80211_set_encryption() [all …]
|
D | wext-sme.c | 36 if (wdev->wext.keys) { in cfg80211_mgd_wext_connect() 37 wdev->wext.keys->def = wdev->wext.default_key; in cfg80211_mgd_wext_connect() 45 if (wdev->wext.keys && wdev->wext.keys->def != -1) { in cfg80211_mgd_wext_connect() 46 ck = kmemdup(wdev->wext.keys, sizeof(*ck), GFP_KERNEL); in cfg80211_mgd_wext_connect()
|
D | ibss.c | 291 if (wdev->wext.keys) in cfg80211_ibss_wext_join() 292 wdev->wext.keys->def = wdev->wext.default_key; in cfg80211_ibss_wext_join() 296 if (wdev->wext.keys && wdev->wext.keys->def != -1) { in cfg80211_ibss_wext_join() 297 ck = kmemdup(wdev->wext.keys, sizeof(*ck), GFP_KERNEL); in cfg80211_ibss_wext_join()
|
D | core.c | 1212 kzfree(wdev->wext.keys); in cfg80211_netdev_notifier_call()
|
/net/mac802154/ |
D | llsec.c | 41 INIT_LIST_HEAD(&sec->table.keys); in mac802154_llsec_init() 69 list_for_each_entry_safe(key, kn, &sec->table.keys, list) { in mac802154_llsec_destroy() 229 list_for_each_entry(pos, &sec->table.keys, list) { in mac802154_llsec_key_add() 265 list_add_rcu(&new->list, &sec->table.keys); in mac802154_llsec_key_add() 279 list_for_each_entry(pos, &sec->table.keys, list) { in mac802154_llsec_key_del() 345 list_for_each_entry_safe(pos, pn, &dev->dev.keys, list) { in llsec_dev_free() 376 INIT_LIST_HEAD(&entry->dev.keys); in mac802154_llsec_dev_add() 416 list_for_each_entry_rcu(devkey, &dev->dev.keys, list) { in llsec_devkey_find() 447 list_add_tail_rcu(&devkey->devkey.list, &dev->dev.keys); in mac802154_llsec_devkey_add() 568 list_for_each_entry_rcu(key_entry, &sec->table.keys, list) { in llsec_lookup_key() [all …]
|
/net/mac80211/ |
D | key.c | 264 key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in __ieee80211_set_default_key() 295 key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in __ieee80211_set_default_mgmt_key() 361 rcu_assign_pointer(sdata->keys[idx], new); in ieee80211_key_replace() 664 old_key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in ieee80211_key_link() 843 struct list_head *keys) in ieee80211_free_keys_iface() argument 857 list_add_tail(&key->list, keys); in ieee80211_free_keys_iface() 870 LIST_HEAD(keys); in ieee80211_free_keys() 876 ieee80211_free_keys_iface(sdata, &keys); in ieee80211_free_keys() 880 ieee80211_free_keys_iface(vlan, &keys); in ieee80211_free_keys() 883 if (!list_empty(&keys) || force_synchronize) in ieee80211_free_keys() [all …]
|
D | debugfs_key.c | 336 if (!key->local->debugfs.keys) in ieee80211_debugfs_key_add() 343 key->local->debugfs.keys); in ieee80211_debugfs_key_add()
|
D | debugfs.c | 328 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
|
D | ieee80211_i.h | 882 struct ieee80211_key __rcu *keys[NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS]; member 1356 struct dentry *keys; member
|
D | rx.c | 1735 rx->key = rcu_dereference(rx->sdata->keys[mmie_keyidx]); in ieee80211_rx_h_decrypt() 1761 key = rcu_dereference(sdata->keys[i]); in ieee80211_rx_h_decrypt() 1810 rx->key = rcu_dereference(rx->sdata->keys[keyidx]); in ieee80211_rx_h_decrypt()
|
/net/ethernet/ |
D | eth.c | 130 struct flow_keys keys; in eth_get_headlen() local 137 if (!skb_flow_dissect_flow_keys_buf(&keys, data, eth->h_proto, in eth_get_headlen() 139 return max_t(u32, keys.control.thoff, sizeof(*eth)); in eth_get_headlen() 142 return min_t(u32, __skb_get_poff(NULL, data, &keys, len), len); in eth_get_headlen()
|
/net/sctp/ |
D | objcnt.c | 56 SCTP_DBG_OBJCNT(keys); 72 SCTP_DBG_OBJCNT_ENTRY(keys),
|
D | auth.c | 68 SCTP_DBG_OBJCNT_DEC(keys); in sctp_auth_key_put() 88 SCTP_DBG_OBJCNT_INC(keys); in sctp_auth_create_key() 121 void sctp_auth_destroy_keys(struct list_head *keys) in sctp_auth_destroy_keys() argument 126 if (list_empty(keys)) in sctp_auth_destroy_keys() 129 key_for_each_safe(ep_key, tmp, keys) { in sctp_auth_destroy_keys()
|
/net/bluetooth/hidp/ |
D | core.c | 176 unsigned char *keys = session->keys; in hidp_input_report() local 192 if (keys[i] > 3 && memscan(udata + 2, keys[i], 6) == udata + 8) { in hidp_input_report() 193 if (hidp_keycode[keys[i]]) in hidp_input_report() 194 input_report_key(dev, hidp_keycode[keys[i]], 0); in hidp_input_report() 196 BT_ERR("Unknown key (scancode %#x) released.", keys[i]); in hidp_input_report() 199 if (udata[i] > 3 && memscan(keys + 2, udata[i], 6) == keys + 8) { in hidp_input_report() 207 memcpy(keys, udata, 8); in hidp_input_report()
|
D | hidp.h | 171 unsigned char keys[8]; member
|
/net/ceph/ |
D | auth_x_protocol.h | 45 __le32 keys; member
|
D | auth_x.c | 499 req->keys = cpu_to_le32(need); in ceph_x_build_request()
|
/net/ieee802154/ |
D | nl-mac.c | 961 list_for_each_entry(pos, &data->table->keys, list) { in llsec_iter_keys() 1202 list_for_each_entry(kpos, &dpos->keys, list) { in llsec_iter_devkeys()
|
D | nl802154.c | 1538 list_for_each_entry(key, &table->keys, list) { in nl802154_dump_llsec_key() 1882 list_for_each_entry(kpos, &dpos->keys, list) { in nl802154_dump_llsec_devkey()
|