From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: "Guram Z. Savinov" <savinov.guram@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Get interface MAC address in sys_accept4() syscall
Date: Fri, 30 Jul 2010 15:17:13 +0800 [thread overview]
Message-ID: <20100730071617.GA5638@cr0.nay.redhat.com> (raw)
In-Reply-To: <4C5211D6.3000406@gmail.com>
On Fri, Jul 30, 2010 at 03:42:14AM +0400, Guram Z. Savinov wrote:
>Hi all,
>
>in net/socket.c is syscall sys_accept4(). In it syscall I need to get
>MAC address of interface, from connection is come.
>For example it is two interfaces eth0 and eth1. I want to know, from
>what interface connection is come to sys_accept4().
>Please help me, how I can do it.
>
It is not obtained from accept(2), you get it with ioctl SIOCGIFHWADDR.
next prev parent reply other threads:[~2010-07-30 7:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 23:42 Guram Z. Savinov
2010-07-29 23:51 ` Guram Z. Savinov
2010-07-30 7:17 ` Américo Wang [this message]
[not found] ` <AANLkTi=bSLALO0xP3kWgX9ipRBroDsqzXp6=kPuwMtW2@mail.gmail.com>
2010-07-30 10:03 ` Américo Wang
2010-07-30 10:22 ` Guram Z. Savinov
2010-07-30 16:15 ` Miquel van Smoorenburg
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=20100730071617.GA5638@cr0.nay.redhat.com \
--to=xiyou.wangcong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=savinov.guram@gmail.com \
/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
Powered by JetHome