Skip to content

Commit 608ee98

Browse files
committed
Add sockaddr_ndrv type for raw sockets on macos.
1 parent affe51f commit 608ee98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,13 @@ s! {
672672
pub s_addr: ::in_addr_t,
673673
}
674674

675+
// net/ndrv.h
676+
pub struct sockaddr_ndrv {
677+
pub snd_len: ::c_uchar,
678+
pub snd_family: ::c_uchar,
679+
pub snd_name: [::c_uchar; 16] // IFNAMSIZ from if.h
680+
}
681+
675682
// sys/socket.h
676683

677684
pub struct sa_endpoints_t {

0 commit comments

Comments
 (0)