I want to set the Do not Fragment flag in the IP packet. Is there a way to do this using a function setsockopt()or using function flags sendto()?
Can I do this with “normal” sockets or do I need to use raw sockets and build the entire IP header myself by setting its offset-field to IP_DF(which is defined in ip.h)?
j00hi source
share