Lines Matching refs:tvlv_hdr
138 if (tvlv_tmp->tvlv_hdr.type != type) in batadv_tvlv_container_get()
141 if (tvlv_tmp->tvlv_hdr.version != version) in batadv_tvlv_container_get()
171 tvlv_len += ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_list_size()
244 tvlv_new->tvlv_hdr.version = version; in batadv_tvlv_container_register()
245 tvlv_new->tvlv_hdr.type = type; in batadv_tvlv_container_register()
246 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); in batadv_tvlv_container_register()
248 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register()
316 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_container_ogm_append() local
336 tvlv_hdr = tvlv_value; in batadv_tvlv_container_ogm_append()
337 tvlv_hdr->type = tvlv->tvlv_hdr.type; in batadv_tvlv_container_ogm_append()
338 tvlv_hdr->version = tvlv->tvlv_hdr.version; in batadv_tvlv_container_ogm_append()
339 tvlv_hdr->len = tvlv->tvlv_hdr.len; in batadv_tvlv_container_ogm_append()
340 tvlv_value = tvlv_hdr + 1; in batadv_tvlv_container_ogm_append()
341 memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); in batadv_tvlv_container_ogm_append()
342 tvlv_value = (u8 *)tvlv_value + ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_ogm_append()
425 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_containers_process() local
430 while (tvlv_value_len >= sizeof(*tvlv_hdr)) { in batadv_tvlv_containers_process()
431 tvlv_hdr = tvlv_value; in batadv_tvlv_containers_process()
432 tvlv_value_cont_len = ntohs(tvlv_hdr->len); in batadv_tvlv_containers_process()
433 tvlv_value = tvlv_hdr + 1; in batadv_tvlv_containers_process()
434 tvlv_value_len -= sizeof(*tvlv_hdr); in batadv_tvlv_containers_process()
440 tvlv_hdr->type, in batadv_tvlv_containers_process()
441 tvlv_hdr->version); in batadv_tvlv_containers_process()
595 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_unicast_send() local
606 tvlv_len = sizeof(*tvlv_hdr) + tvlv_value_len; in batadv_tvlv_unicast_send()
626 tvlv_hdr = (struct batadv_tvlv_hdr *)tvlv_buff; in batadv_tvlv_unicast_send()
627 tvlv_hdr->version = version; in batadv_tvlv_unicast_send()
628 tvlv_hdr->type = type; in batadv_tvlv_unicast_send()
629 tvlv_hdr->len = htons(tvlv_value_len); in batadv_tvlv_unicast_send()
630 tvlv_buff += sizeof(*tvlv_hdr); in batadv_tvlv_unicast_send()