As TDI client, how to "set IP_HDRINCL "

When an application sends a datagram it may or may not include the IP
header at the front of the outgoing datagrams depending on the IP_HDRINCL
option set for the socket.
but as TDI client, how do i “set IP_HDRINCL”