Skip to content

Commit 7dca532

Browse files
committed
More OSX debugging info. Don't merge!
1 parent 8220a19 commit 7dca532

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,13 @@ impl ControlMessageOwned {
657657
let dl = ptr::read_unaligned(p as *const libc::in_addr);
658658
ControlMessageOwned::Ipv4RecvDstAddr(dl)
659659
},
660-
(_, _) => {
660+
(level, ty) => {
661+
println!("Received unknown control message level={} type={}",
662+
level, ty);
663+
#[cfg(any(target_os = "freebsd", target_os = "macos"))]
664+
println!("libc::IPPROTO_IP={} libc::IP_RECVDSTADDR={}",
665+
libc::IPPROTO_IP, libc::IP_RECVDSTADDR);
666+
661667
let sl = slice::from_raw_parts(p, len);
662668
let ucmsg = UnknownCmsg(*header, Vec::<u8>::from(&sl[..]));
663669
ControlMessageOwned::Unknown(ucmsg)

0 commit comments

Comments
 (0)