Lines Matching refs:tvlv_hdr
699 if (tvlv_tmp->tvlv_hdr.type != type) in batadv_tvlv_container_get()
702 if (tvlv_tmp->tvlv_hdr.version != version) in batadv_tvlv_container_get()
732 tvlv_len += ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_list_size()
805 tvlv_new->tvlv_hdr.version = version; in batadv_tvlv_container_register()
806 tvlv_new->tvlv_hdr.type = type; in batadv_tvlv_container_register()
807 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); in batadv_tvlv_container_register()
809 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register()
872 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_container_ogm_append() local
892 tvlv_hdr = tvlv_value; in batadv_tvlv_container_ogm_append()
893 tvlv_hdr->type = tvlv->tvlv_hdr.type; in batadv_tvlv_container_ogm_append()
894 tvlv_hdr->version = tvlv->tvlv_hdr.version; in batadv_tvlv_container_ogm_append()
895 tvlv_hdr->len = tvlv->tvlv_hdr.len; in batadv_tvlv_container_ogm_append()
896 tvlv_value = tvlv_hdr + 1; in batadv_tvlv_container_ogm_append()
897 memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); in batadv_tvlv_container_ogm_append()
898 tvlv_value = (u8 *)tvlv_value + ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_ogm_append()
981 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_containers_process() local
986 while (tvlv_value_len >= sizeof(*tvlv_hdr)) { in batadv_tvlv_containers_process()
987 tvlv_hdr = tvlv_value; in batadv_tvlv_containers_process()
988 tvlv_value_cont_len = ntohs(tvlv_hdr->len); in batadv_tvlv_containers_process()
989 tvlv_value = tvlv_hdr + 1; in batadv_tvlv_containers_process()
990 tvlv_value_len -= sizeof(*tvlv_hdr); in batadv_tvlv_containers_process()
996 tvlv_hdr->type, in batadv_tvlv_containers_process()
997 tvlv_hdr->version); in batadv_tvlv_containers_process()
1144 struct batadv_tvlv_hdr *tvlv_hdr; in batadv_tvlv_unicast_send() local
1156 tvlv_len = sizeof(*tvlv_hdr) + tvlv_value_len; in batadv_tvlv_unicast_send()
1176 tvlv_hdr = (struct batadv_tvlv_hdr *)tvlv_buff; in batadv_tvlv_unicast_send()
1177 tvlv_hdr->version = version; in batadv_tvlv_unicast_send()
1178 tvlv_hdr->type = type; in batadv_tvlv_unicast_send()
1179 tvlv_hdr->len = htons(tvlv_value_len); in batadv_tvlv_unicast_send()
1180 tvlv_buff += sizeof(*tvlv_hdr); in batadv_tvlv_unicast_send()