understanding wpa supplicant Code ??
maccari-thisaintpartofmyaddress- at lenst.det.unifi.it
Thu Jan 13 06:58:53 EST 2005
On Wed, Jan 12, 2005 at 02:57:40PM -0800, Pradeep Daniel wrote:
> This is a fundamental question on how the state machine macros expand???
> For example,
> in eapol_sm.c in function
> SM_STEP_RUN(SUPP_BE) is called I would like to know which function is called??
it's not really intuitive, it took me a while to understand this:
#define SM_STEP(machine) \
static void sm_ ## machine ## _Step(struct eapol_state_machine *sm)
#define SM_STEP_RUN(machine) sm_ ## machine ## _Step(sm)
SM_STEP_RUN is expanded to sm_machine_Step() which is not directly defined
anywhere becouse it is expanded from another macro which is
SM_STEP(machine) used in the function definition.
you can use GCC to make just the preprocessing of the code, and it will be
clearer, or, if you want to surf the code in an easier way you could
generate the project documentation with doxygen which does preprocessing
if you whish.
Key fingerprint = 3129 C583 F03B 2E73 0115 C040 3489 0185 B592 19FE
Obviously -thisaintpartofmyaddress- is not part of my real email address
More information about the HostAP