1234567891011121314151617181920212223242526272829303132333435363738394041(*
* 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.ttypecallback=src:ipaddr->dst:ipaddr->Cstruct.t->unitLwt.ttypeprefix=Ipaddr.Prefix.tletpp_error=Tcpip.Ip.pp_errorletpp_ipaddr=Ipaddr.ppletpp_prefix=Ipaddr.Prefix.ppletmtu_~dst=matchdstwith|Ipaddr.V4_->1500-Ipv4_wire.sizeof_ipv4|Ipaddr.V6_->1500-Ipv6_wire.sizeof_ipv6letdisconnect_=Lwt.return_unitletconnect_=Lwt.return_unitletinput_~tcp:_~udp:_~default:__=Lwt.return_unitletwrite_?fragment:_?ttl:_?src:___?size:___=Lwt.fail(Failure"Not implemented")letget_ip_=[Ipaddr.V6Ipaddr.V6.unspecified]letconfigured_ips_=[Ipaddr.Prefix.of_string_exn"::/0"]letsrc_~dst:_=raise(Failure"Not implemented")letpseudoheader_?src:____=raise(Failure"Not implemented")