Messages in this thread | | | Date | Fri, 30 Jul 2010 15:17:13 +0800 | From | Américo Wang <> | Subject | Re: Get interface MAC address in sys_accept4() syscall |
| |
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.
| |