From: nilesh.tayade@netscout.com (nilesh)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Suspicious URL:Re: Check Interface Status
Date: Fri, 30 Dec 2011 15:05:49 +0530 [thread overview]
Message-ID: <4EFD85F5.5010907@netscout.com> (raw)
In-Reply-To: <20111230083624.GB2213@grml>
On Friday 30 December 2011 02:06 PM,
michi1 at michaelblizek.twilightparadox.com wrote:
> Hi!
>
> On 12:30 Fri 30 Dec , nilesh wrote:
>> 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).
>
> This looks more like "cable attached" rather than "interface up".
Oh yes, it will just tell us if the carrier is available.
IFF_UP flag is the right way, as you suggested in the other email.
>
> -Michi
--
Thanks,
Nilesh
prev parent reply other threads:[~2011-12-30 9:35 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
2011-12-30 8:36 ` michi1 at michaelblizek.twilightparadox.com
2011-12-30 9:35 ` nilesh [this message]
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=4EFD85F5.5010907@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).