Skip to content

Commit a487286

Browse files
committed
ipv4: remove cases that can't be triggered
1 parent 8f55e15 commit a487286

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/ipv4/IPv4.ml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,6 @@ let write t ?(ttl = 38) ?src dst ~protocol p =
322322
m ~tags:t.tags "not sending packet loopback (src %a dst %a)"
323323
Ipaddr.V4.pp src Ipaddr.V4.pp dst);
324324
Ok ()
325-
| Error `Any ->
326-
Log.debug (fun m ->
327-
m ~tags:t.tags "not sending packet to any %a" Ipaddr.V4.pp dst);
328-
Ok ()
329-
| Error `Broadcast ->
330-
Log.debug (fun m ->
331-
m ~tags:t.tags "not sending packet from broadcast %a" Ipaddr.V4.pp src);
332-
Ok ()
333325
| Ok macaddr ->
334326
write_directly t ~ttl src (dst, macaddr) ~protocol p;
335327
Ok ()

0 commit comments

Comments
 (0)