Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
The NET_BUFFER_LIST structure for each packet that traverses the Hyper-V extensible switch data path contains out-of-band (OOB) data. Questi dati specificano la porta di origine da cui ha avuto origine il pacchetto, nonché una o più porte di destinazione per il recapito dei pacchetti. Questi dati OOB sono noti come contesto di inoltro estendibile .
The following data types have been declared to access the extensible switch forwarding context within a packet's NET_BUFFER_LIST structure:
NDIS_SWITCH_FORWARDING_DETAIL_NET_BUFFER_LIST_INFO
Si tratta di un'unione a 64 bit che contiene le caratteristiche di inoltro di un pacchetto. Questi dati includono gli identificatori per la porta di origine e la connessione alla scheda di rete da cui ha avuto origine il pacchetto. Questi dati includono anche il numero di elementi inutilizzati disponibili nella matrice di porte di destinazione.
The extensible switch extension can access this data by using the NET_BUFFER_LIST_SWITCH_FORWARDING_DETAIL macro.
NDIS_SWITCH_FORWARDING_DESTINATION_ARRAY
Questa struttura definisce la matrice di porte di destinazione per il pacchetto. Each element in this array is formatted as an NDIS_SWITCH_PORT_DESTINATION structure.
The NDIS_SWITCH_FORWARDING_DESTINATION_ARRAY structure contains members that specify the current number of the total number of elements as well as the number of used elements in the array.
The extensible switch extension can obtain this array by calling the GetNetBufferListDestinations function. If the driver adds or modifies elements in the array for a packet with multiple destination ports, it must call the UpdateNetBufferListDestinations function. Questa funzione esegue il commit di tali modifiche nella matrice di porte di destinazione nel contesto di inoltro del pacchetto.
Note To commit changes to a packet with only one destination port, it is more efficient for the driver to call the AddNetBufferListDestination function.
NDIS_SWITCH_PORT_DESTINATION
Questa struttura definisce una porta di destinazione per il pacchetto. For packets with a single destination port, there is only one NDIS_SWITCH_PORT_DESTINATION element in the destination port array. Per i pacchetti con più porte di destinazione, nella matrice sono presenti uno o più di questi elementi.
After the extensible switch extension has called GetNetBufferListDestinations to obtain the packet's destination port array, it can access individual elements in the array by using the NDIS_SWITCH_PORT_DESTINATION_AT_ARRAY_INDEX macro.