Why is there no function for packet reception in linux loopback network interface ?
Normally any network driver should provide a function or should implement an interrupt for the packet reception however /drivers/net/loopback.c which is the source code for linux network loopback interface does not contain any mechanism to implement packet reception.
How does it function without an exclusive reception mechanism? |
Quote:
|
Even though it does not have any h/w ,It sends packets to itself and that has to be received and sent up the protocol stack to the application layer. When we use ping we get reply as below:
Code:
avi@linux-inng:~/cscope> ping 127.0.0.1 |
Even though it does not have any h/w ,It sends packets to itself and that has to be received and sent up the protocol stack to the application layer. When we use ping we get reply as below:
Code:
avi@linux-inng:~/cscope> ping 127.0.0.1 so there must be some exclusive mechanism at work. Which does not appear anywhere in cource code loopback.c . |
All times are GMT -5. The time now is 10:04 PM. |