This document provides a brief description of the dot1x_eap_stats OpEN APIs. It provides the following services:
- Get the dot1x port Eapol Frames Received Stats
- Get the dot1x port Eapol Frames Transmitted Stats
- Get the dot1x port Eapol Start Frames Received Stats
- Get the dot1x port Eapol Logoff Frames Received Stat
- Get number of EAP Response/Identity frames received
- Get the dot1x port Eap Response Frames Received Stat
- Get the dot1x port Eap Request Id Frames Transmitted Stat
- Get the dot1x port Eap Request Frames Transmitted Stat
- Get the dot1x port Invalid Eapol Frames Received Stat
- Get the dot1x port Eap Length error Frames Received Stat
- Get the dot1x port Last Eapol Frame Version Stat
- Get the dot1x port Last Eapol Frame Source Stat
- Clear the dot1x stats on the specified port
Example C Application dot1x_eap_stats_example
Initialization
In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.
dot1x_eap_stats_example
dot1x_eap_stats_example.c is a sample application that demonstrates the use of OpEN's dot1x_eap_stats APIs. dot1x_eap_stats_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.
Sample Output
- Usage: ./dot1x_eap_stats_example <test#> <arg1> <arg2> ...
- Test 1: Get the dot1x port Eapol Frames Received Stats: dot1x_eap_stats_example 1 <intIfNum>
- Test 2: Get the dot1x port Eapol Frames Transmitted Stats: dot1x_eap_stats_example 2 <intIfNum>
- Test 3: Get the dot1x port Eapol Start Frames Received Stats: dot1x_eap_stats_example 3 <intIfNum>
- Test 4: Get the dot1x port Eapol Logoff Frames Received Stat: dot1x_eap_stats_example 4 <intIfNum>
- Test 5: Get number of EAP Response/Identity frames received: dot1x_eap_stats_example 5 <intIfNum>
- Test 6: Get the dot1x port Eap Response Frames Received Stat: dot1x_eap_stats_example 6 <intIfNum>
- Test 7: Get the dot1x port Eap Request Id Frames Transmitted Stat: dot1x_eap_stats_example 7 <intIfNum>
- Test 8: Get the dot1x port Eap Request Frames Transmitted Stat: dot1x_eap_stats_example 8 <intIfNum>
- Test 9: Get the dot1x port Invalid Eapol Frames Received Stat: dot1x_eap_stats_example 9 <intIfNum>
- Test 10: Get the dot1x port Eap Length error Frames Received Stat: dot1x_eap_stats_example 10 <intIfNum>
- Test 11: Get the dot1x port Last Eapol Frame Version Stat: dot1x_eap_stats_example 11 <intIfNum>
- Test 12: Get the dot1x port Last Eapol Frame Source Stat: dot1x_eap_stats_example 12 <intIfNum>
- Test 13: Clear the dot1x stats on the specified port: dot1x_eap_stats_example 13 <intIfNum>
- Test 14: Run API sanity checks: dot1x_eap_stats_example 14
dot1x_eap_stats CLI/API Cross Reference