LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-26-2016, 03:22 AM   #1
noddy123
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
how to get IP address of all the interfaces wlan and ethernet


Hi,

I am developing a kernel module, were I need to get IP address of all the network interfaces, such as multiple Ethernet Cards and WLAN card.
How to get it programatically in kernel module.

Thanks
 
Old 07-26-2016, 08:17 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,485
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Often the answer is in the question.
Use Google-

http://stackoverflow.com/questions/9...t-ipv4-address
http://www.computerhope.com/unix/uifconfi.htm
http://apple.stackexchange.com/quest...e-command-line
 
Old 07-27-2016, 05:28 AM   #3
noddy123
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
These links won't help in developing Linux kernel module, anyway thanks for your suggestions.

I used dev_get_by_index(), to get all interface details.

Thanks
 
Old 07-27-2016, 09:48 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,485
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Your Welcome

Sorry those links didn't help much.

Good luck developing.
 
  


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
Linux networking to assign a address to my ethernet address karthik3152 Linux - Networking 1 05-29-2011 09:37 AM
Linux Ethernet Interfaces sachinh Linux - General 6 04-03-2009 09:18 AM
Multiple Ethernet Interfaces gjs286 Linux - Networking 1 04-19-2004 01:09 PM
Master/slave ethernet interfaces sewer_monkey Linux - Networking 6 10-24-2002 11:02 AM
FTP problem with two ethernet interfaces... KConway Linux - Networking 7 07-30-2001 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:01 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