support set IP_DONTFRAG

Open
#318 3 comments 5 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@bhaskargurram-ai is already working on this.

Since Oct 18, 2026.

  • #556 by @cathaysia — closed without merging
  • #679 by @bhaskargurram-ai — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
networking

Research direction

Start by reading the linked Chromium socket/udp_socket_posix.cc implementation and compare its macOS IPv4 and IPv6 handling for IP_DONTFRAG. Then locate the corresponding socket2 option entry point; done means the requested setting is supported with the platform-specific behavior accounted for.

Written by the indexing model from the issue text.

Description

enhancement

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);
 ```

Dominant language
Rust
Stars
885
Forks
328
Avg merge
6d 12h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/socket2

All issues in rust-lang/socket2

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.