IP assignment and authenticated port
Scott Armitage
s.p.armitage
Tue Feb 3 01:40:07 PST 2015
> On 3 Feb 2015, at 09:08, Sarah Thomas <sarah040.thomas at gmail.com> wrote:
>
> Hi Scott,
>
> By saying client should'nt be able to send DHCP request, do you mean the broadcast message from the client or any other message?
>
> Because I see the below in code (where dhcp broadcast message can be used for station detection)
>
> /* setup dhcp listen socket for sta detection */
> if ((drv->dhcp_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
> perror("socket call failed for dhcp");
> return -1;
> }
>
> if (eloop_register_read_sock(drv->dhcp_sock, handle_dhcp, drv->ctx,
> NULL)) {
> printf("Could not register read socket\n");
> return -1;
> }
>
Where about in the source is this? Without read the source to see what it is doing I don?t know what this is for. However, given the comment ?for sta detection? this could simply be a way of detecting a client then triggering sending an eapol start.
Scott
More information about the Hostap
mailing list