Skip to content

support set IP_DONTFRAG #318

Description

@gcxfd

see

https://chromium.googlesource.com/chromium/src/net/+/refs/heads/main/socket/udp_socket_posix.cc

 //setsockopt(IP_DONTFRAG)issupportedonmacOSfromBigSur
 #elifBUILDFLAG(IS_MAC)
 if(!base::mac::IsAtLeastOS11()){
 returnERR_NOT_IMPLEMENTED;
 }
 intval=1;
 if(addr_family_==AF_INET6){
 intrv=
 setsockopt(socket_,IPPROTO_IPV6,IPV6_DONTFRAG,&val,sizeof(val));
 //IP_DONTFRAGisnotsupportedonv4mappedaddresses.
 returnrv==0?OK:MapSystemError(errno);
 }
 intrv=setsockopt(socket_,IPPROTO_IP,IP_DONTFRAG,&val,sizeof(val));
 returnrv==0?OK:MapSystemError(errno);
 ```

Activity

  1. Thomasdezeeuw commented on Jul 11, 2022

    @Thomasdezeeuw
    Collaborator

    @gcxfd do you mean you would like a function that sets this flag? If so, such a change would be welcome.

  2. jcdutton commented on Jan 8, 2024

    @jcdutton

    I have put a patch to add this in:
    #487

    Only tested on Linux.

  3. Thomasdezeeuw commented on Jan 8, 2024

    @Thomasdezeeuw
    Collaborator

    I have put a patch to add this in: #487

    Only tested on Linux.

    Can you please send a pull requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions