Home
last modified time | relevance | path

Searched refs:hinfo (Results 1 – 6 of 6) sorted by relevance

/net/netfilter/
Dxt_hashlimit.c274 struct xt_hashlimit_htable *hinfo; in htable_create() local
290 hinfo = vmalloc(sizeof(struct xt_hashlimit_htable) + in htable_create()
292 if (hinfo == NULL) in htable_create()
294 *out_hinfo = hinfo; in htable_create()
297 ret = cfg_copy(&hinfo->cfg, (void *)cfg, 3); in htable_create()
299 vfree(hinfo); in htable_create()
303 hinfo->cfg.size = size; in htable_create()
304 if (hinfo->cfg.max == 0) in htable_create()
305 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create()
306 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create()
[all …]
/net/ipv6/
Dseg6_hmac.c53 const struct seg6_hmac_info *hinfo = obj; in seg6_hmac_cmpfn() local
55 return (hinfo->hmackeyid != *(__u32 *)arg->key); in seg6_hmac_cmpfn()
58 static inline void seg6_hinfo_release(struct seg6_hmac_info *hinfo) in seg6_hinfo_release() argument
60 kfree_rcu(hinfo, rcu); in seg6_hinfo_release()
65 struct seg6_hmac_info *hinfo = (struct seg6_hmac_info *)ptr; in seg6_free_hi() local
67 if (hinfo) in seg6_free_hi()
68 seg6_hinfo_release(hinfo); in seg6_free_hi()
124 static int __do_hmac(struct seg6_hmac_info *hinfo, const char *text, u8 psize, in __do_hmac() argument
132 algo = __hmac_get_algo(hinfo->alg_id); in __do_hmac()
145 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); in __do_hmac()
[all …]
Dseg6.c91 struct seg6_hmac_info *hinfo; in seg6_genl_sethmac() local
116 hinfo = seg6_hmac_info_lookup(net, hmackeyid); in seg6_genl_sethmac()
119 if (!hinfo) in seg6_genl_sethmac()
132 if (hinfo) { in seg6_genl_sethmac()
140 hinfo = kzalloc(sizeof(*hinfo), GFP_KERNEL); in seg6_genl_sethmac()
141 if (!hinfo) { in seg6_genl_sethmac()
146 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac()
147 hinfo->slen = slen; in seg6_genl_sethmac()
148 hinfo->alg_id = algid; in seg6_genl_sethmac()
149 hinfo->hmackeyid = hmackeyid; in seg6_genl_sethmac()
[all …]
Dinet6_hashtables.c190 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local
200 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established()
201 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
/net/ipv4/
Dinet_hashtables.c326 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established() local
337 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established()
338 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established()
542 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_hash_connect() local
553 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
554 hinfo->bhash_size)]; in __inet_hash_connect()
587 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
588 hinfo->bhash_size)]; in __inet_hash_connect()
607 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, in __inet_hash_connect()
637 inet_twsk_bind_unhash(tw, hinfo); in __inet_hash_connect()
Dinet_connection_sock.c175 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port() local
214 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
215 hinfo->bhash_size)]; in inet_csk_find_open_port()
286 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port() local
301 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
302 hinfo->bhash_size)]; in inet_csk_get_port()
308 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, in inet_csk_get_port()