sys/dev/hyperv/netvsc/hv_rndis_filter.c
/*
 * Set the Per-Packet-Info with the specified type
 */
Set the Per-Packet-Info with the specified type
Set the Per - Packet - Info with the specified type
void *
hv_set_rppi_data(rndis_msg *rndis_mesg, uint32_t rppi_size,
	int pkt_type)
{
	rndis_packet *rndis_pkt;
	rndis_per_packet_info *rppi;
	rndis_pkt = &rndis_mesg->msg.packet;
	rndis_pkt->data_offset += rppi_size;
	rppi = (rndis_per_packet_info *)((char *)rndis_pkt +
	    rndis_pkt->per_pkt_info_offset + rndis_pkt->per_pkt_info_length);
	rppi->size = rppi_size;
	rppi->type = pkt_type;
	rppi->per_packet_info_offset = sizeof(rndis_per_packet_info);
	rndis_pkt->per_pkt_info_length += rppi_size;
	return (rppi);
}
void * hv_set_rppi_data ( rndis_msg * rndis_mesg , uint32_t rppi_size , int pkt_type ) { rndis_packet * rndis_pkt ; rndis_per_packet_info * rppi ; rndis_pkt = & rndis_mesg -> msg . packet ; rndis_pkt -> data_offset += rppi_size ; rppi = ( rndis_per_packet_info * ) ( ( char * ) rndis_pkt + rndis_pkt -> per_pkt_info_offset + rndis_pkt -> per_pkt_info_length ) ; rppi -> size = rppi_size ; rppi -> type = pkt_type ; rppi -> per_packet_info_offset = sizeof ( rndis_per_packet_info ) ; rndis_pkt -> per_pkt_info_length += rppi_size ; return ( rppi ) ; }
Set the Per-Packet-Info with the specified type
Set the Per - Packet - Info with the specified type