Re: Re: what is value of MAX_TCP_HEADER?

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

 



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


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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