Contents

ifnet_input

Declaration

errno_t ifnet_input(ifnet_t interface, mbuf_t first_packet, const struct ifnet_stat_increment_param *stats);

Parameters

  • interface:

    The interface.

  • first_packet:

    The first packet in a chain of packets.

  • stats:

    Counts to be integrated in to the stats. The interface statistics will be incremented by the amounts specified in stats. This parameter may be NULL.

Return Value

0 on success otherwise the errno error.

Discussion

Inputs packets from the interface. The interface's demux will be called to determine the protocol. Once the protocol is determined, the interface filters and protocol filters will be called. From there, the packet will be passed to the registered protocol. If there is an error, the mbuf chain will be freed.

See Also

Network Kernel Extensions