| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | packet forwarding understandings |
| From: | "rahul N." <rahul8143@xxxxxxxxx> |
| Date: | Thu, 14 Apr 2005 19:16:56 +0530 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TQOefoAdvu8a9gcFCsUxVRFps+GD2FW9UwiPxTYNkYWI3lWzmeGFnsLlJMs5EDrWKqECZh+cDi6kjE6QdDdWbEp6+JJl8VREgRIfidAHwNvWYjsMwbNbZgxvVkXYxWkP1eJxglA4eVre3TAGd7jNek758eX7PmV93e7N3uY0vOE= |
| Reply-to: | "rahul N." <rahul8143@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
hello,
Following is code snippet from ip_forward function from ip_forward.c
........
dev2 = rt->u.dst.dev;
mtu = rt->u.dst.pmtu;
/*
* We now generate an ICMP HOST REDIRECT giving the route
* we calculated.
*/
if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr)
ip_rt_send_redirect(skb);
/* We are about to mangle packet. Copy it! */
if (skb_cow(skb, dev2->hard_header_len))
goto drop;
iph = skb->nh.iph;
...............
when router takes packet to forward does above code is written to check if
next dst hop has different network device or if it is using different
hard_header_len
so that skb_cow is called?
whats use of skb_cow in ip_forward?
I am using 2.4 series kernel.
regards,
rahul
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [IPV6] Replace bogus instances of inet->recverr, YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | [PATCH 1/1][ATM]: sk_atm() conversion missed subtle change of vcc, chas williams - CONTRACTOR |
| Previous by Thread: | [patch 2.6.12-rc2 0/10] add bcm5752 support plus some cleanup to tg3, John W. Linville |
| Next by Thread: | [PATCH 1/1][ATM]: sk_atm() conversion missed subtle change of vcc, chas williams - CONTRACTOR |
| Indexes: | [Date] [Thread] [Top] [All Lists] |