Skip to content

Commit 88fb1f5

Browse files
committed
Add _v4 suffix to (set_)freebind
To match the other IPv4 only socket methods.
1 parent ba0afe1 commit 88fb1f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,7 @@ impl crate::Socket {
21672167
feature = "all",
21682168
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
21692169
))]
2170-
pub fn freebind(&self) -> io::Result<bool> {
2170+
pub fn freebind_v4(&self) -> io::Result<bool> {
21712171
unsafe {
21722172
getsockopt::<c_int>(self.as_raw(), libc::SOL_IP, libc::IP_FREEBIND)
21732173
.map(|freebind| freebind != 0)
@@ -2185,7 +2185,7 @@ impl crate::Socket {
21852185
feature = "all",
21862186
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
21872187
))]
2188-
pub fn set_freebind(&self, freebind: bool) -> io::Result<()> {
2188+
pub fn set_freebind_v4(&self, freebind: bool) -> io::Result<()> {
21892189
unsafe {
21902190
setsockopt(
21912191
self.as_raw(),

0 commit comments

Comments
 (0)