LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


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

Rep: Reputation: Disabled
problem in defining 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?
Or what are the steps to define a nez sysctl variable??

thanks in advance
 
Old 08-26-2011, 10:00 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Please don't double post. I've reported this for being a duplicate of this.
 
Old 08-26-2011, 12:43 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in define a sysctl tcp variable hayf Linux - Networking 1 08-28-2011 10:27 PM
Sysctl : How to detect TCP connection lost faster? philipina Linux - Networking 1 11-08-2008 01:20 PM
defining global variable in fedora kernel tuncausluer Linux - Software 0 12-31-2004 01:53 PM
Defining Global variable in Fedora Kernel tuncausluer Fedora - Installation 0 12-31-2004 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:00 AM.

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