[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Determining remote IP/MAC address using socket
From: |
Gisle Vanem |
Subject: |
Re: [lwip-users] Determining remote IP/MAC address using socket |
Date: |
Fri, 26 Oct 2012 13:30:43 +0200 |
"tamirmichael" <address@hidden> wrote:
I know this question has been asked several times already (see
http://lwip.100.n7.nabble.com/How-to-find-remote-MAC-address-from-remote-IP-address-td7934.html)
but I still haven't found what I'm looking for:
I have a HTTP server to which browsers connect. In order to implement access
control, I want to filter IP/MAC addresses, but for that I need to be able
to determine them.
Like it was written in that page (the URL you gave), ARP is not suited
for access-control when the connection comes from beyond your
subnet.
Isn't lwip_getpeername() more suited? After the lwip_accept() gives
you a new socket for the connection, examine the address with
lwip_getpeername() and drop the connection at your will.
Do I need to add the code myself?
I think so. Unless you hack the lwIP core API yourself.
--gv