Re: Re: Re: what is value of MAX_TCP_HEADER?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  hi,
      thanks for your reply. as you said i did the same. and got follwing output.
 int mysterious_value = (128 + (96 + 48));
so what i get answer is 272 is that right.

regards,
parag.


On Mon, 10 May 2004 Michael Svetlik wrote :
>On Monday 10 May 2004 10:14, bunty  wrote:
> > i am not getting correct value  of MAX_TCP_HEADER.
> > what i got in tcp.h is
> > #define MAX_TCP_HEADER  (128 + MAX_HEADER)
>
>Paste the following code snippet into some file, say 'snippet.c':
><codesnippet>
>#include <net/tcp.h>
>
>void foo(void) {
> 	int mysterious_value = MAX_TCP_HEADER;
>}
></codesnippet>
>
>Then, say
>$ gcc -I/usr/src/linux/include -D__KERNEL__ -E snippet.c | grep -w mysterious_value
>
>The output is what you're looking for.
>
>HTH
>Michael
>

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux