LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-18-2009, 03:31 AM   #1
zanget
LQ Newbie
 
Registered: Jul 2009
Posts: 20

Rep: Reputation: 0
Where is the source code for netconfig


Hi,Every one:
Which source download contains netconfig?

[root@Mike /]# rpm -qf /usr/sbin/netconfig
netconfig-0.8.21-1
after google about netconfig-0.8.21-1 or netconfig-0.8, i just get something about rpm(s)

i want to configure the net work on eth0,eth1,but i am confused on how to do this. may be some one will tell me about to call the system() with the command netconfig/ifconfig or somethig,but i can not get the result about whether the command is ok or the return status so i can go in to the next step.

Any help on this would be appreciated~
thanks!
 
Old 07-18-2009, 03:52 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,805

Rep: Reputation: Disabled
Google is your friend. Why didn't you google for: netconfig-0.8 source?
That's what I did and found it immediately and I don't even use fedora.
http://www.icewalkers.com/rpm/netcon...nfig-2775.html
cheers,
jdk
 
Old 07-18-2009, 04:06 AM   #3
zanget
LQ Newbie
 
Registered: Jul 2009
Posts: 20

Original Poster
Rep: Reputation: 0
thank you for the replay any way

but the page i had just found a while ago but i cannot download any file in

Download Netconfig 0.8.24 rpm

and even check the ftp
ftp://mirrors.kernel.org/fedora/core/
then do not fount any source code anyway...
i donnt konw whether the network is good here or not.

by the way the old Solutions about this part is below:
Code:
	sprintf(cmd,"/usr/sbin/netconfig  -d  eth%d ",eth_no);
	sprintf(cmd+strlen(cmd),"--ip=%s ",ip);
	sprintf(cmd+strlen(cmd),"--netmask=%s ",mask);
	sprintf(cmd+strlen(cmd),"--gateway=%s ",gateway);
	sprintf(cmd+strlen(cmd),"--nameserver=%s ",dns);
	log("cmd=%s\n",cmd);
	system(cmd);
	
	system(" /etc/init.d/network  restart");
i dont know whether is working good in my c program or not!
thanks again!

Last edited by zanget; 07-18-2009 at 04:38 AM.
 
Old 07-18-2009, 09:24 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,805

Rep: Reputation: Disabled
Quote:
Originally Posted by zanget View Post
thank you for the replay any way

but the page i had just found a while ago but i cannot download any file in

Download Netconfig 0.8.24 rpm

and even check the ftp
ftp://mirrors.kernel.org/fedora/core/
then do not fount any source code anyway...
i donnt konw whether the network is good here or not.

by the way the old Solutions about this part is below:
Code:
	sprintf(cmd,"/usr/sbin/netconfig  -d  eth%d ",eth_no);
	sprintf(cmd+strlen(cmd),"--ip=%s ",ip);
	sprintf(cmd+strlen(cmd),"--netmask=%s ",mask);
	sprintf(cmd+strlen(cmd),"--gateway=%s ",gateway);
	sprintf(cmd+strlen(cmd),"--nameserver=%s ",dns);
	log("cmd=%s\n",cmd);
	system(cmd);
	
	system(" /etc/init.d/network  restart");
i dont know whether is working good in my c program or not!
thanks again!
Sorry, I don't understand. Do you have a question?
jdk
 
Old 07-18-2009, 12:04 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Assuming you are running Fedora all of sources to your rpms are availble via yum. You just need to turn on the source repo.

If you just want the one src rpm it may be easier just to download it directly. Here is the path to the source rpms for F11:

 
  


Reply

Tags
code, netconfig, source


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Open Source coders caught stealing Open Source code LXer Syndicated Linux News 1 04-06-2007 07:08 AM
LXer: Krugle offers code search engine for open source, with open source LXer Syndicated Linux News 0 02-27-2007 08:04 AM
LXer: Voip Encryption, source code open source LXer Syndicated Linux News 0 07-09-2006 03:21 PM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM


All times are GMT -5. The time now is 03:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration