next up previous
Next: 6 The Socket API Up: 5 Interacting with the Previous: 5.2 Handing packets to


5.3 Getting packets received by the network interface

When a network interface receives a packet from the network, it copies the packet from its own internal buffer into a pbuf data structure (or a pbuf chain if the packet is larger than a pbuf) in main memory. The interface then calls your ip_input() routine which is the entry point into the network layer. The device knows it should call this function because the function is registered as the entry point into the network layer during kernel initialization.


next up previous
Next: 6 The Socket API Up: 5 Interacting with the Previous: 5.2 Handing packets to