netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* help in using eth_change_mtu
@ 2005-01-24  8:59 Harsh
  2005-01-25  3:46 ` Neema
  0 siblings, 1 reply; 3+ messages in thread
From: Harsh @ 2005-01-24  8:59 UTC (permalink / raw)
  To: linux-net; +Cc: netdev

Hello,
         If some extra information is required to be sent with each
packet then does that require to change Ethernet MTU 1500 to
1500-(Bytes in extra info) or its ok with 1500 value of MTU? While
checking source code of net_init.c in drivers/net dir i found one
function eth_change_mtu. I want to know does that helps? why its given
there in source code?
regards,
Harsh.

static int eth_change_mtu(struct net_device *dev, int new_mtu)
 {
        if ((new_mtu < 68) || (new_mtu > 1500))
                 return -EINVAL;
        dev->mtu = new_mtu;
        return 0;
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help in using eth_change_mtu
  2005-01-24  8:59 help in using eth_change_mtu Harsh
@ 2005-01-25  3:46 ` Neema
  2005-01-25  6:20   ` Harsh
  0 siblings, 1 reply; 3+ messages in thread
From: Neema @ 2005-01-25  3:46 UTC (permalink / raw)
  To: Harsh; +Cc: linux-net, netdev

Hi,

    What ever u may send,the maximum size of the packet in ethernet 
should be 1514bytes, that includes ethernet header (And also minimum is 
82bytes).
I think u are using old libnet version. That function sets the MTU with 
the given value if neither exceeded max and nor minimum.


HTH,
Neema

Harsh wrote:

>Hello,
>         If some extra information is required to be sent with each
>packet then does that require to change Ethernet MTU 1500 to
>1500-(Bytes in extra info) or its ok with 1500 value of MTU? While
>checking source code of net_init.c in drivers/net dir i found one
>function eth_change_mtu. I want to know does that helps? why its given
>there in source code?
>regards,
>Harsh.
>
>static int eth_change_mtu(struct net_device *dev, int new_mtu)
> {
>        if ((new_mtu < 68) || (new_mtu > 1500))
>                 return -EINVAL;
>        dev->mtu = new_mtu;
>        return 0;
> }
>-
>To unsubscribe from this list: send the line "unsubscribe linux-net" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>  
>


-- 

Thanks & Regards,
Neema




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help in using eth_change_mtu
  2005-01-25  3:46 ` Neema
@ 2005-01-25  6:20   ` Harsh
  0 siblings, 0 replies; 3+ messages in thread
From: Harsh @ 2005-01-25  6:20 UTC (permalink / raw)
  To: Neema; +Cc: linux-net, netdev

Hello ,
             Extra info mean IPSEC headers. How can they sent in
2.4.24 kernel? where can i find Packets being using IPSEC headers and
is that require to reduce MTU by AH/ESP header bytes???
            Also can you tellme in which condition eth_change_mtu used?
reagards,
Harsh.


On Tue, 25 Jan 2005 09:16:17 +0530, Neema <neema.network@gmail.com> wrote:
> Hi,
> 
>     What ever u may send,the maximum size of the packet in ethernet
> should be 1514bytes, that includes ethernet header (And also minimum is
> 82bytes).
> I think u are using old libnet version. That function sets the MTU with
> the given value if neither exceeded max and nor minimum.
> 
> HTH,
> Neema
> 
> Harsh wrote:
> 
> >Hello,
> >         If some extra information is required to be sent with each
> >packet then does that require to change Ethernet MTU 1500 to
> >1500-(Bytes in extra info) or its ok with 1500 value of MTU? While
> >checking source code of net_init.c in drivers/net dir i found one
> >function eth_change_mtu. I want to know does that helps? why its given
> >there in source code?
> >regards,
> >Harsh.
> >
> >static int eth_change_mtu(struct net_device *dev, int new_mtu)
> > {
> >        if ((new_mtu < 68) || (new_mtu > 1500))
> >                 return -EINVAL;
> >        dev->mtu = new_mtu;
> >        return 0;
> > }
> >-
> >To unsubscribe from this list: send the line "unsubscribe linux-net" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> >
> >
> 
> --
> 
> Thanks & Regards,
> Neema
> 
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-25  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-24  8:59 help in using eth_change_mtu Harsh
2005-01-25  3:46 ` Neema
2005-01-25  6:20   ` Harsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).