Searched refs:hmackeyid (Results 1 – 2 of 2) sorted by relevance
/net/ipv6/ |
D | seg6.c | 98 u32 hmackeyid; in seg6_genl_sethmac() local 111 hmackeyid = nla_get_u32(info->attrs[SEG6_ATTR_HMACKEYID]); in seg6_genl_sethmac() 115 if (hmackeyid == 0) in seg6_genl_sethmac() 122 hinfo = seg6_hmac_info_lookup(net, hmackeyid); in seg6_genl_sethmac() 128 err = seg6_hmac_info_del(net, hmackeyid); in seg6_genl_sethmac() 144 err = seg6_hmac_info_del(net, hmackeyid); in seg6_genl_sethmac() 160 hinfo->hmackeyid = hmackeyid; in seg6_genl_sethmac() 162 err = seg6_hmac_info_add(net, hmackeyid, hinfo); in seg6_genl_sethmac() 248 if (nla_put_u32(msg, SEG6_ATTR_HMACKEYID, hinfo->hmackeyid) || in __seg6_hmac_fill_info()
|
D | seg6_hmac.c | 50 return (hinfo->hmackeyid != *(__u32 *)arg->key); in seg6_hmac_cmpfn() 68 .key_offset = offsetof(struct seg6_hmac_info, hmackeyid), 164 __be32 hmackeyid = cpu_to_be32(hinfo->hmackeyid); in seg6_hmac_compute() local 205 memcpy(off, &hmackeyid, 4); in seg6_hmac_compute() 266 hinfo = seg6_hmac_info_lookup(net, be32_to_cpu(tlv->hmackeyid)); in seg6_hmac_validate_skb() 339 hinfo = seg6_hmac_info_lookup(net, be32_to_cpu(tlv->hmackeyid)); in seg6_push_hmac()
|