Get interface MAC address in sys_accept4() syscall

From: Guram Z. Savinov
Date: Thu Jul 29 2010 - 19:41:53 EST


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.

Thank's for attention for my question.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/