From: nilesh.tayade@netscout.com (nilesh)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Check Interface Status
Date: Fri, 30 Dec 2011 12:30:37 +0530 [thread overview]
Message-ID: <4EFD6195.7020503@netscout.com> (raw)
In-Reply-To: <CACLebov-juRSJZM=tT_wXFFJ5C4P5fNHbYaaqh_Kq_pZPB10XA@mail.gmail.com>
On Thursday 29 December 2011 08:23 PM, Rahul Kumar wrote:
> Hi,
>
> I would like to check the interface status (up/down) within linux kernel.
> Is there any routine (sort of ioctl) to do this. Any code that is
> already in use in kernel would also be helpful for me.
> Please let me know.
>
I think netif_carrier_ok() could help. You can refer network driver
code(e.g. e1000_main.c).
--
Thanks,
Nilesh
next prev parent reply other threads:[~2011-12-30 7:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-29 14:53 Check Interface Status Rahul Kumar
2011-12-29 17:53 ` michi1 at michaelblizek.twilightparadox.com
2011-12-30 7:00 ` nilesh [this message]
2011-12-30 8:36 ` michi1 at michaelblizek.twilightparadox.com
2011-12-30 9:35 ` Suspicious URL:Re: " nilesh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EFD6195.7020503@netscout.com \
--to=nilesh.tayade@netscout.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).