hostapd question

Jouni Malinen j
Sat May 26 18:41:37 PDT 2007


On Thu, May 24, 2007 at 09:52:00PM -0400, Michael Alexeev wrote:

> What I am trying to achieve is to build IPTABLES rule similar to the following
> 
> iptables -A ACCESS_GROUPS -m physdev --physdev-in eth19 -m mac
> --mac-source 00:0f:b0:70:ec:42 -j c77

> The target information (c77 in this example) would come from the
> RADIUS as an response attribute and I hope that MAC address and port
> (physdev) is available inside the  hostapd. I can see that addr
> attribute in the   eapol_state_machine struct  holds the MAC address,
> correct? but where is the port data stored?

In ieee802_1x_receive_auth(), the netdev name is available from
hapd->conf->iface. STA MAC address is available from either sm->addr or
sta->addr.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list