@@ -175,7 +175,7 @@ again:
175175 var fns []ReceiveFunc
176176 if v4conn != nil {
177177 s .ipv4TxOffload , s .ipv4RxOffload = supportsUDPOffload (v4conn )
178- if runtime .GOOS == "linux" || runtime . GOOS == "android" {
178+ if runtime .GOOS == "linux" {
179179 v4pc = ipv4 .NewPacketConn (v4conn )
180180 s .ipv4PC = v4pc
181181 }
@@ -184,7 +184,7 @@ again:
184184 }
185185 if v6conn != nil {
186186 s .ipv6TxOffload , s .ipv6RxOffload = supportsUDPOffload (v6conn )
187- if runtime .GOOS == "linux" || runtime . GOOS == "android" {
187+ if runtime .GOOS == "linux" {
188188 v6pc = ipv6 .NewPacketConn (v6conn )
189189 s .ipv6PC = v6pc
190190 }
@@ -238,7 +238,7 @@ func (s *StdNetBind) receiveIP(
238238 }
239239 defer s .putMessages (msgs )
240240 var numMsgs int
241- if runtime .GOOS == "linux" || runtime . GOOS == "android" {
241+ if runtime .GOOS == "linux" {
242242 if rxOffload {
243243 readAt := len (* msgs ) - (IdealBatchSize / udpSegmentMaxDatagrams )
244244 numMsgs , err = br .ReadBatch ((* msgs )[readAt :], 0 )
@@ -292,7 +292,7 @@ func (s *StdNetBind) makeReceiveIPv6(pc *ipv6.PacketConn, conn *net.UDPConn, rxO
292292// TODO: When all Binds handle IdealBatchSize, remove this dynamic function and
293293// rename the IdealBatchSize constant to BatchSize.
294294func (s * StdNetBind ) BatchSize () int {
295- if runtime .GOOS == "linux" || runtime . GOOS == "android" {
295+ if runtime .GOOS == "linux" {
296296 return IdealBatchSize
297297 }
298298 return 1
@@ -415,7 +415,7 @@ func (s *StdNetBind) send(conn *net.UDPConn, pc batchWriter, msgs []ipv6.Message
415415 err error
416416 start int
417417 )
418- if runtime .GOOS == "linux" || runtime . GOOS == "android" {
418+ if runtime .GOOS == "linux" {
419419 for {
420420 n , err = pc .WriteBatch (msgs [start :], 0 )
421421 if err != nil || n == len (msgs [start :]) {
0 commit comments