Skip to contentSkip to conversation

loopback packet processing.

DISCUSSION Harshal Nemade 1 participant 2 messages Dec 14, 2004 – Dec 15, 2004 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,
I want to know that when i send a packet on loopback on
127.0.0.1 the packet is given to netif_rx without MAC header adding. I want to know Is that correct? If yes then what happen to that 14 byte MAC header bytes space in case Ping packet? Is that space free? Why eth_type_trans is called that checks eth->h_proto field ?
Please correct me if i am wrong.
Thanks in advance,
harsh.

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

Hi MANJUNATH,
I actually did a lot work on kernel packet processing and
found that ping packet creation enters in ethernet.c.
Also can you tell me what happens in ip_finish_output2 when
ping ICMP packet is created by kernel? what header is added there.
Also in receving end control enters in ethernet.c to check
eth->h_proto field which is ETH_P_IP. How & where it is added by kernel in case of PING packet?

regards,
Harsh.

Quoted 15 lines · MANJUNATH

Hi,

When u send data to the loopback address, control never Enters "ethernet" modules.(Data link layer)

Since ping inturn uses program interface to ICMP which is a part of IPV4 s/w, for loopback ping IP modules themselves replies. Ethernet does not come into picture.

cheers,
Manjunath