Skip to content

Commit

Permalink
Auto merge of #2740 - junhochoi:ip_dontfrag_freebsdlike, r=Amanieu
Browse files Browse the repository at this point in the history
Add IP_DONTFRAG and IPV6_DONTFRAG for FreeBSD-like

FreeBSD: add IP_DONTFRAG
FreeBSD, DragonFlyBSD: add IPV6_DONTFRAG
  • Loading branch information
bors committed Apr 10, 2022
2 parents c971d65 + 9d17b31 commit 6e2de91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ IPV6_PKTINFO
IPV6_RECVPKTINFO
IPV6_RECVTCLASS
IPV6_TCLASS
IPV6_DONTFRAG
IP_HDRINCL
IP_RECVDSTADDR
IP_RECVIF
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,15 @@ IPV6_RECVORIGDSTADDR
IPV6_RECVPKTINFO
IPV6_RECVTCLASS
IPV6_TCLASS
IPV6_DONTFRAG
IP_BINDANY
IP_BINDMULTI
IP_HDRINCL
IP_ORIGDSTADDR
IP_RECVDSTADDR
IP_RECVIF
IP_RECVORIGDSTADDR
IP_DONTFRAG
IP_RECVTOS
IP_RSS_LISTEN_BUCKET
IP_SENDSRCADDR
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2886,6 +2886,7 @@ pub const IP_RSS_LISTEN_BUCKET: ::c_int = 26;
pub const IP_ORIGDSTADDR: ::c_int = 27;
pub const IP_RECVORIGDSTADDR: ::c_int = IP_ORIGDSTADDR;

pub const IP_DONTFRAG: ::c_int = 67;
pub const IP_RECVTOS: ::c_int = 68;

pub const IPV6_BINDANY: ::c_int = 64;
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ pub const IPV6_PKTINFO: ::c_int = 46;
pub const IPV6_HOPLIMIT: ::c_int = 47;
pub const IPV6_RECVTCLASS: ::c_int = 57;
pub const IPV6_TCLASS: ::c_int = 61;
pub const IPV6_DONTFRAG: ::c_int = 62;

pub const TCP_NOPUSH: ::c_int = 4;
pub const TCP_NOOPT: ::c_int = 8;
Expand Down

0 comments on commit 6e2de91

Please sign in to comment.