Skip to content

refactor: move hostapd_radius_attr into common - #469

Merged
mereacre merged 3 commits into
mainfrom
refactor/move-hostapd_radius_attr-into-radius-common
Mar 1, 2023
Merged

refactor: move hostapd_radius_attr into common#469
mereacre merged 3 commits into
mainfrom
refactor/move-hostapd_radius_attr-into-radius-common

Conversation

@aloisklink

Copy link
Copy Markdown
Contributor

Move struct hostapd_radius_attr from src/radius/radius_server.h to src/radius/common.h.

I'm guessing this is to keep src/radius/radius_server.h as close to the upstream hostapd source-code as possible.

It's used by the hostapd source-code to store RADIUS attributes.

See
https://w1.fi/cgit/hostap/commit/?id=af35e7af7f8bb1ca9f0905b4074fb56a264aa12b


Adapted from dff384c. I've instead used uint8_t instead of u8, to match standard ISO C types, and added documentation.

Move `struct hostapd_radius_attr` from `src/radius/radius_server.h` to
`src/radius/common.h`.

It's used by the hostapd source-code to store RADIUS attributes.

See
https://w1.fi/cgit/hostap/commit/?id=af35e7af7f8bb1ca9f0905b4074fb56a264aa12b

Co-authored-by: Alexandru Mereacre <mereacre@gmail.com>
@aloisklink aloisklink added the refactor Refactoring code label Feb 28, 2023
@aloisklink aloisklink added this to the RADIUS ERP Server milestone Feb 28, 2023
@aloisklink aloisklink mentioned this pull request Feb 28, 2023
@codecov

codecov Bot commented Feb 28, 2023

Copy link
Copy Markdown

Codecov Report

Merging #469 (9dd04a4) into main (2231386) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #469   +/-   ##
=======================================
  Coverage   53.48%   53.48%           
=======================================
  Files         144      144           
  Lines       19963    19963           
=======================================
+ Hits        10677    10678    +1     
+ Misses       9286     9285    -1     
Impacted Files Coverage Δ
src/radius/common.h 42.59% <ø> (ø)
tests/test_edgesec.c 97.29% <0.00%> (+0.54%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mereacre
mereacre added this pull request to the merge queue Mar 1, 2023
Merged via the queue into main with commit 03bfc22 Mar 1, 2023
@mereacre
mereacre deleted the refactor/move-hostapd_radius_attr-into-radius-common branch March 1, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants