Contents

bpf_tap_out

Declaration

void bpf_tap_out(ifnet_t interface, u_int32_t dlt, mbuf_t packet, void *header, size_t header_len);

Parameters

  • interface:

    The interface the packet was or will be transmitted on.

  • dlt:

    The data link type of the packet.

  • packet:

    The packet received.

  • header:

    An optional pointer to a header that will be prepended.

  • headerlen:

    If the header was specified, the length of the header.

Discussion

Call this function when your interface trasmits a packet. This function will check if any bpf devices need a a copy of the packet.

See Also

bpf