File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -761,11 +761,13 @@ fn protocol() {
761
761
let socket = Socket :: new ( Domain :: UNIX , Type :: STREAM , None ) . unwrap ( ) ;
762
762
assert_eq ! ( socket. protocol( ) . unwrap( ) , None ) ;
763
763
764
+ /* Don't have permission for this on CI.
764
765
let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::ICMPV4)).unwrap();
765
766
assert_eq!(socket.protocol().unwrap(), Some(Protocol::ICMPV4));
766
767
767
768
let socket = Socket::new(Domain::IPV6, Type::DGRAM, Some(Protocol::ICMPV6)).unwrap();
768
769
assert_eq!(socket.protocol().unwrap(), Some(Protocol::ICMPV6));
770
+ */
769
771
770
772
let socket = Socket :: new ( Domain :: IPV4 , Type :: STREAM , Some ( Protocol :: TCP ) ) . unwrap ( ) ;
771
773
assert_eq ! ( socket. protocol( ) . unwrap( ) , Some ( Protocol :: TCP ) ) ;
You can’t perform that action at this time.
0 commit comments