LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2011, 09:25 AM   #1
hayf
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 35

Rep: Reputation: Disabled
problem in define a sysctl tcp variable


Hello,
I am using a debian linux 2.6.32 machine.
I am changing the tcp stack in <kernel to add a new tcp option.
So I defined a variable similat to tcp_timestamps called tcp_variable.
I defined it in tcp.h, and in sysctl_net_ipv4.c, i added similarly to tcp_timzstamps this code:

static struct ctl_table ipv4table[]={
...
{ .ctl_name = NET_IPV4_TCP_VARIABLE,
.proc_name = "tcp_variable",
.data = &sysctl_tcp_wing,
...}

I also defined it in sysctl.h in the tcp enum at the end (same enum with tcp timestamps).

Then i used this sysctl variable in tcp_output..

The problem is that my variable didn't function and i had en error in kernal variables after recompilation. Add to this other variables aren't working such as tcp_timestamps...

what is missing in my method to create the variable? how can i correct it?
thanks in advance

Last edited by hayf; 08-26-2011 at 09:57 AM.
 
Old 08-28-2011, 10:27 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Define TCP Wrapper sathish80 Linux - Newbie 5 08-14-2009 09:04 AM
Sysctl : How to detect TCP connection lost faster? philipina Linux - Networking 1 11-08-2008 01:20 PM
Define global variable maxmil Linux - Newbie 4 03-07-2006 10:36 AM
How can I define a global variable? kloss Linux - General 4 02-21-2006 04:30 AM
how am i define an environment variable? yenonn Slackware 2 12-19-2003 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration