// nbluro.h
#define NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE(_NBL) \
(((NDIS_UDP_RSC_OFFLOAD_NET_BUFFER_LIST_INFO*) \
&(_NBL)->NetBufferListInfo[UdpRecvSegCoalesceOffloadInfo])->Receive.SegSize)
View the official Windows Driver Kit DDI referenceNo description available.
NDIS drivers use the NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE macro to get and set the size, in bytes, of the individual UDP datagram payloads that were coalesced into a NET_BUFFER_LIST structure. The datagrams must have the same payload length in order to be eligible for coalescing, with the exception of the last datagram which may be less.
#define NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE(_NBL) \
(((NDIS_UDP_RSC_OFFLOAD_NET_BUFFER_LIST_INFO*) \
&(_NBL)->NetBufferListInfo[UdpRecvSegCoalesceOffloadInfo])->Receive.SegSize)
_NBLA pointer to a NET_BUFFER_LIST structure.
NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE returns the SegSize member of the NDIS_UDP_RSC_OFFLOAD_NET_BUFFER_LIST_INFO structure that is associated with the UdpRecvSegCoalesceOffloadInfo identifier. The information is retrieved from the NetBufferListInfo member of the indicated NET_BUFFER_LIST structure.
The following example demonstrates getting a SegSize value:
value = NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE(Nbl);
The following example demonstrates setting a SegSize value:
NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE(Nbl) = 1200;
UDP Receive Segment Coalescing Offload (URO)