Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOSTPAD driver changes for PAC #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vijaya-ops
Copy link
Contributor

Why I did it
These changes are required to support PAC functionality to sonic-wpasupplicant driver.

How I did it

How to verify it

@vijaya-ops
Copy link
Contributor Author

Below are the associated PRs for this functionality.

#88
#89
#90
#91
sonic-net/sonic-utilities#3265
sonic-net/sonic-swss-common#871

HLD PR is below
sonic-net/SONiC#1655

we will raise the remaining functionality in new PRs asap.

@vijaya-ops
Copy link
Contributor Author

/azpw run Azure

@mssonicbld
Copy link

/AzurePipelines run Azure

Copy link

No pipelines are associated with this pull request.

@adyeung
Copy link

adyeung commented Aug 7, 2024

@jeff-yin @ridahanif96 pls help review

@vijaya-ops
Copy link
Contributor Author

/azpw run Azure

@mssonicbld
Copy link

/AzurePipelines run Azure

@ridahanif96
Copy link

@jeff-yin @ridahanif96 pls help review

Ali Hussain from xFlow will review these PRs

Copy link

@muhammadalihussnain muhammadalihussnain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seems fine. Please rerun of push again the code to pass the failed checks

fprintf(stderr, "socket failed [%s]\n", strerror(errno));
return -1;
}
printf("Created a socket with fd: %d\n", fd);
Copy link

@venkatmahalingam venkatmahalingam Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need printfs in this function?

/* Let us initialize the server address structure */
saddr.sin_family = AF_INET;
saddr.sin_port = htons(3434);
local_host = gethostbyname("127.0.0.1");
Copy link

@praveenraja1 praveenraja1 Oct 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this local socket is for the communication between "hostapd" & "pacd" applications,

My question is why have we not leveraged/added logic to the control interface that is exposed by hostapd via lib_wpaclient

https://gist.github.com/sepfy/25c1a34e9b418de230a1d97c56de88a6

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The control interface uses synchronous communication. The PAC uses the control interface to send command updates etc. In case of asynchronous data reception such as information retrieved from the radius response etc , PAC listens on a server socket. Hence this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants