| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | tcp/ip stack question |
| From: | "kernel coder" <lhrkernelcoder@gmail.com> |
| Date: | Thu, 7 Jun 2007 05:50:36 -0700 |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QPk6ko0BKq4sVKIbF3n07VLnJ2KDD9/WPCKEMG/WCItPqeNxZJkCFVGark6+m9PUA4gB/g7EcobzUnv2oJy/EJs/m5r7QEcgM+uwH5UDN5blvIIrnUAE50q8kYqmo7G2OlYIVhoLVMIfZC1L5U8tMC4nceNuIwOqNZUQshOrUZs= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Hp/kOnKw+Oc3AdURq2Cb/zzwmDGmg9j3xTSD+pmYh7MYCftwd6rATzz+GjvD2L1svOtdO/roD/W+Tse5ikCJv9NuWIFTFb6VM0VifoyKlZ6jYYBeWbOIPhLtwxar5p/0twtd6vEMHpy9WF/u46Glvx0wvbQ0K+WD3b3cDLsb28o= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
hi,
I am recieveing the packet on eth1 and want to send it through eth2.
I've written code in netif_recieve_skb function .This code changes the
mac header in sk_buff structure so that it can be send through other
interface card.But when i call ip_dev_find fucntion to get the second
interface structure ,NULL is returned.I checked the ip of second
ethernet card and it was similar to one passed to ip_dev_find
fucntion,then why NULL is being returned?
Actually if i get the correct dev structure from ip_dev_find fucntion
then i'll assign that dev structure to current skbuff->dev and call
dev_queue_xmit fucntion,so that it transmitted through second
interface card.Is mine approach correct?
shahzad
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: smp_mb() in asm-mips/bitops.h, Ralf Baechle |
|---|---|
| Next by Date: | Re: Tickless/dyntick kernel, highres timer and general time crapectomy, Franck Bui-Huu |
| Previous by Thread: | smp_mb() in asm-mips/bitops.h, Atsushi Nemoto |
| Next by Thread: | Re: tcp/ip stack question, Domen Puncer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |