@@ -730,7 +730,9 @@ pub enum ControlMessage<'a> {
730
730
/// [`ip(7)`](http://man7.org/linux/man-pages/man7/ip.7.html) man page.
731
731
#[ cfg( any( target_os = "linux" ,
732
732
target_os = "macos" ,
733
- target_os = "netbsd" ) ) ]
733
+ target_os = "netbsd" ,
734
+ target_os = "android" ,
735
+ target_os = "ios" , ) ) ]
734
736
Ipv4PacketInfo ( & ' a libc:: in_pktinfo ) ,
735
737
736
738
/// Configure the sending addressing and interface for v6
@@ -740,7 +742,9 @@ pub enum ControlMessage<'a> {
740
742
#[ cfg( any( target_os = "linux" ,
741
743
target_os = "macos" ,
742
744
target_os = "netbsd" ,
743
- target_os = "freebsd" ) ) ]
745
+ target_os = "freebsd" ,
746
+ target_os = "android" ,
747
+ target_os = "ios" , ) ) ]
744
748
Ipv6PacketInfo ( & ' a libc:: in6_pktinfo ) ,
745
749
}
746
750
@@ -824,10 +828,12 @@ impl<'a> ControlMessage<'a> {
824
828
gso_size as * const _ as * const u8
825
829
} ,
826
830
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
827
- target_os = "netbsd" ) ) ]
831
+ target_os = "netbsd" , target_os = "android" ,
832
+ target_os = "ios" , ) ) ]
828
833
ControlMessage :: Ipv4PacketInfo ( info) => info as * const _ as * const u8 ,
829
834
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
830
- target_os = "netbsd" , target_os = "freebsd" ) ) ]
835
+ target_os = "netbsd" , target_os = "freebsd" ,
836
+ target_os = "android" , target_os = "ios" , ) ) ]
831
837
ControlMessage :: Ipv6PacketInfo ( info) => info as * const _ as * const u8 ,
832
838
} ;
833
839
unsafe {
@@ -870,10 +876,12 @@ impl<'a> ControlMessage<'a> {
870
876
mem:: size_of_val ( gso_size)
871
877
} ,
872
878
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
873
- target_os = "netbsd" ) ) ]
879
+ target_os = "netbsd" , target_os = "android" ,
880
+ target_os = "ios" , ) ) ]
874
881
ControlMessage :: Ipv4PacketInfo ( info) => mem:: size_of_val ( info) ,
875
882
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
876
- target_os = "netbsd" , target_os = "freebsd" ) ) ]
883
+ target_os = "netbsd" , target_os = "freebsd" ,
884
+ target_os = "android" , target_os = "ios" , ) ) ]
877
885
ControlMessage :: Ipv6PacketInfo ( info) => mem:: size_of_val ( info) ,
878
886
}
879
887
}
@@ -892,10 +900,12 @@ impl<'a> ControlMessage<'a> {
892
900
#[ cfg( target_os = "linux" ) ]
893
901
ControlMessage :: UdpGsoSegments ( _) => libc:: SOL_UDP ,
894
902
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
895
- target_os = "netbsd" ) ) ]
903
+ target_os = "netbsd" , target_os = "android" ,
904
+ target_os = "ios" , ) ) ]
896
905
ControlMessage :: Ipv4PacketInfo ( _) => libc:: IPPROTO_IP ,
897
906
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
898
- target_os = "netbsd" , target_os = "freebsd" ) ) ]
907
+ target_os = "netbsd" , target_os = "freebsd" ,
908
+ target_os = "android" , target_os = "ios" , ) ) ]
899
909
ControlMessage :: Ipv6PacketInfo ( _) => libc:: IPPROTO_IPV6 ,
900
910
}
901
911
}
@@ -925,10 +935,12 @@ impl<'a> ControlMessage<'a> {
925
935
libc:: UDP_SEGMENT
926
936
} ,
927
937
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
928
- target_os = "netbsd" ) ) ]
938
+ target_os = "netbsd" , target_os = "android" ,
939
+ target_os = "ios" , ) ) ]
929
940
ControlMessage :: Ipv4PacketInfo ( _) => libc:: IP_PKTINFO ,
930
941
#[ cfg( any( target_os = "linux" , target_os = "macos" ,
931
- target_os = "netbsd" , target_os = "freebsd" ) ) ]
942
+ target_os = "netbsd" , target_os = "freebsd" ,
943
+ target_os = "android" , target_os = "ios" , ) ) ]
932
944
ControlMessage :: Ipv6PacketInfo ( _) => libc:: IPV6_PKTINFO ,
933
945
}
934
946
}
0 commit comments