123456789101112131415161718192021222324252627282930313233343536373839(*
* Copyright (c) 2014 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)typet=unittypeerror=Tcpip.Ip.errortypeipaddr=Ipaddr.V4.ttypecallback=src:ipaddr->dst:ipaddr->Cstruct.t->unitLwt.ttypeprefix=Ipaddr.V4.Prefix.tletpp_error=Tcpip.Ip.pp_errorletpp_ipaddr=Ipaddr.V4.ppletpp_prefix=Ipaddr.V4.Prefix.ppletmtu_~dst:_=1500-Ipv4_wire.sizeof_ipv4letdisconnect_=Lwt.return_unitletconnect_=Lwt.return_unitletinput_~tcp:_~udp:_~default:__=Lwt.return_unitletwrite_?fragment:_?ttl:_?src:___?size:___=Lwt.fail(Failure"Not implemented")letget_ip_=[Ipaddr.V4.any]letconfigured_ips_=[Ipaddr.V4.Prefix.global]letsrc_~dst:_=raise(Failure"Not implemented")letpseudoheader_?src:____=raise(Failure"Not implemented")