LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 07-18-2009, 04:31 AM   #1
zanget
LQ Newbie
 
Registered: Jul 2009
Posts: 12
Thanked: 0
Where is the source code for netconfig


[Log in to get rid of this advertisement]
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!
zanget is offline  
Tag This Post , ,
Reply With Quote
Old 07-18-2009, 04:52 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Gorizia
Distribution: Debian Testing
Posts: 1,791
Thanked: 158
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
jdkaye is offline     Reply With Quote
Old 07-18-2009, 05:06 AM   #3
zanget
LQ Newbie
 
Registered: Jul 2009
Posts: 12
Thanked: 0

Original Poster
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 05:38 AM..
zanget is offline     Reply With Quote
Old 07-18-2009, 10:24 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Gorizia
Distribution: Debian Testing
Posts: 1,791
Thanked: 158
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
jdkaye is offline     Reply With Quote
Old 07-18-2009, 01:04 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,919
Thanked: 109
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:

lazlow is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 08:54 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration