12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /*====================================================================*
- *
- * Copyright (c) 2013 Qualcomm Atheros, Inc.
- *
- * All rights reserved.
- *
- *====================================================================*/
- /*====================================================================*
- *
- * void slac_session (struct session * session);
- *
- * slac.h
- *
- * print the SLAC session variable if the SLAC_SESSION bit is set
- * in the sesssion variable flagword;
- *
- * macro HEXSTRING is defined in memory.h and is used to reduce the
- * number of arguments one must type to invoke function hexstring;
- *
- *--------------------------------------------------------------------*/
- #ifndef SLAC_SESSION_SOURCE
- #define SLAC_SESSION_SOURCE
- #include <stdio.h>
- #include "../tools/memory.h"
- #include "../tools/error.h"
- #include "../tools/flags.h"
- #include "../slac/slac.h"
- void slac_session (struct session * session)
- {
- if (_anyset (session->flags, SLAC_SESSION))
- {
- char string [256];
- debug (0, __func__, "session.RunID %s", HEXSTRING (string, session->RunID));
- debug (0, __func__, "session.APPLICATION_TYPE %d", session->APPLICATION_TYPE);
- debug (0, __func__, "session.SECURITY_TYPE %d", session->SECURITY_TYPE);
- debug (0, __func__, "session.RESP_TYPE %d", session->RESP_TYPE);
- debug (0, __func__, "session.NUM_SOUNDS %d", session->NUM_SOUNDS);
- debug (0, __func__, "session.TIME_OUT %d", session->TIME_OUT);
- debug (0, __func__, "session.NumGroups %d", session->NumGroups);
- debug (0, __func__, "session.AAG %s", hexstring (string, sizeof (string), session->AAG, sizeof (session->AAG)));
- debug (0, __func__, "session.MSOUND_TARGET %s", HEXSTRING (string, session->MSOUND_TARGET));
- debug (0, __func__, "session.FORWARDING_STA %s", HEXSTRING (string, session->FORWARDING_STA));
- debug (0, __func__, "session.PEV_ID %s", HEXSTRING (string, session->PEV_ID));
- debug (0, __func__, "session.PEV_MAC %s", HEXSTRING (string, session->PEV_MAC));
- debug (0, __func__, "session.EVSE_ID %s", HEXSTRING (string, session->EVSE_ID));
- debug (0, __func__, "session.EVSE_MAC %s", HEXSTRING (string, session->EVSE_MAC));
- debug (0, __func__, "session.RND %s", HEXSTRING (string, session->RND));
- debug (0, __func__, "session.NMK %s", HEXSTRING (string, session->NMK));
- debug (0, __func__, "session.NID %s", HEXSTRING (string, session->NID));
- debug (0, __func__, "session.original_nmk %s", HEXSTRING (string, session->original_nmk));
- debug (0, __func__, "session.original_nid %s", HEXSTRING (string, session->original_nid));
- debug (0, __func__, "session.state %d", session->state);
- debug (0, __func__, "session.sounds %d", session->sounds);
- debug (0, __func__, "session.limit %d", session->limit);
- debug (0, __func__, "session.pause %d", session->pause);
- debug (0, __func__, "session.chargetime %d", session->chargetime);
- debug (0, __func__, "session.settletime %d", session->settletime);
- debug (0, __func__, "session.counter %d", session->counter);
- debug (0, __func__, "session.flags 0x%04X", session->flags);
- }
- return;
- }
- #endif
|