val open_link : ?filter:string -> string -> topen_link ~filter interface. Creates a rawlink on the specified interface, a BPF program filter can be passed to filter out incoming packets.
val close_link : t -> unitclose_link. Closes a rawlink.
send_packet t. Sends a full packet, may raise Unix.Unix_error.
dhcp_server_filter. Returns a BPF program suitable to be passed in open_link ~filter, it accepts UDP packets destined to port 67 (DHCP server).
dhcp_client_filter. Returns a BPF program suitable to be passed in open_link ~filter, it accepts UDP packets destined to port 68 (DHCP client).