Skip to content

Commit

Permalink
windows IPV6_PMTUDISC_* options are IP_PMTUDISC_SET, IP_PMTUDISC_DO, …
Browse files Browse the repository at this point in the history
…IP_PMTUDISCDONT and IP_PMTUDISC_PROBE
  • Loading branch information
jthomas43 committed Nov 15, 2024
1 parent 2796d29 commit 5e81c90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ udx__udp_set_rxq_ovfl (uv_os_sock_t fd) {
int
udx__udp_set_dontfrag (uv_os_sock_t fd, bool is_ipv6) {
int rc;
int val = IP_PMTUDISC_PROBE;
if (is_ipv6) {
int val = IPV6_PMTUDISC_PROBE;
rc = setsockopt(fd, IPPROTO_IPV6, IPV6_MTU_DISCOVER, &val, sizeof(val));
} else {
int val = IP_PMTUDISC_PROBE;
rc = setsockopt(fd, IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val));
}

Expand Down

0 comments on commit 5e81c90

Please sign in to comment.