"tamirmichael" <[email protected]> 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
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users