NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-nbluro-net_buffer_list_udp_coalesced_seg_size)

Description

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.

Syntax

#define NET_BUFFER_LIST_UDP_COALESCED_SEG_SIZE(_NBL) \
    (((NDIS_UDP_RSC_OFFLOAD_NET_BUFFER_LIST_INFO*) \
        &(_NBL)->NetBufferListInfo[UdpRecvSegCoalesceOffloadInfo])->Receive.SegSize)

Parameters

_NBL

A pointer to a NET_BUFFER_LIST structure.

Return value

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.

Remarks

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;

See also

NET_BUFFER_LIST

UDP Receive Segment Coalescing Offload (URO)