Lines Matching refs:tvlv_hdr
683 if (tvlv_tmp->tvlv_hdr.type != type) in batadv_tvlv_container_get()
686 if (tvlv_tmp->tvlv_hdr.version != version) in batadv_tvlv_container_get()
716 tvlv_len += ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_list_size()
785 tvlv_new->tvlv_hdr.version = version; in batadv_tvlv_container_register()
786 tvlv_new->tvlv_hdr.type = type; in batadv_tvlv_container_register()
787 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); in batadv_tvlv_container_register()
789 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register()
853 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_container_ogm_append() local
873 tvlv_hdr = tvlv_value; in batadv_tvlv_container_ogm_append()
874 tvlv_hdr->type = tvlv->tvlv_hdr.type; in batadv_tvlv_container_ogm_append()
875 tvlv_hdr->version = tvlv->tvlv_hdr.version; in batadv_tvlv_container_ogm_append()
876 tvlv_hdr->len = tvlv->tvlv_hdr.len; in batadv_tvlv_container_ogm_append()
877 tvlv_value = tvlv_hdr + 1; in batadv_tvlv_container_ogm_append()
878 memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); in batadv_tvlv_container_ogm_append()
879 tvlv_value = (uint8_t *)tvlv_value + ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_ogm_append()
962 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_containers_process() local
967 while (tvlv_value_len >= sizeof(*tvlv_hdr)) { in batadv_tvlv_containers_process()
968 tvlv_hdr = tvlv_value; in batadv_tvlv_containers_process()
969 tvlv_value_cont_len = ntohs(tvlv_hdr->len); in batadv_tvlv_containers_process()
970 tvlv_value = tvlv_hdr + 1; in batadv_tvlv_containers_process()
971 tvlv_value_len -= sizeof(*tvlv_hdr); in batadv_tvlv_containers_process()
977 tvlv_hdr->type, in batadv_tvlv_containers_process()
978 tvlv_hdr->version); in batadv_tvlv_containers_process()
1125 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_unicast_send() local
1137 tvlv_len = sizeof(*tvlv_hdr) + tvlv_value_len; in batadv_tvlv_unicast_send()
1157 tvlv_hdr = (struct batadv_tvlv_hdr *)tvlv_buff; in batadv_tvlv_unicast_send()
1158 tvlv_hdr->version = version; in batadv_tvlv_unicast_send()
1159 tvlv_hdr->type = type; in batadv_tvlv_unicast_send()
1160 tvlv_hdr->len = htons(tvlv_value_len); in batadv_tvlv_unicast_send()
1161 tvlv_buff += sizeof(*tvlv_hdr); in batadv_tvlv_unicast_send()