OpenNSL API Guide and Reference Manual
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sal/driver.h>
#include <opennsl/error.h>
#include <opennsl/stack.h>
#include <opennsl/vlan.h>
#include <opennsl/mirror.h>
#include <examples/util.h>
Go to the source code of this file.
Macros | |
#define | DEFAULT_UNIT 0 |
#define | DEFAULT_VLAN 1 |
Functions | |
int | main (int argc, char *argv[]) |
Main function for mirroring application. | |
Variables | |
char | example_usage [] |
#define DEFAULT_UNIT 0 |
Definition at line 37 of file example_mirror.c.
Referenced by main().
#define DEFAULT_VLAN 1 |
Definition at line 38 of file example_mirror.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function for mirroring application.
argc,argv | commands line arguments |
Definition at line 66 of file example_mirror.c.
References DEFAULT_UNIT, example_port_default_config(), example_read_user_choice(), example_switch_default_vlan_config(), example_usage, NULL, opennsl_driver_exit(), opennsl_driver_init(), OPENNSL_E_NONE, OPENNSL_E_PARAM, and opennsl_errmsg.
char example_usage[] |
Definition at line 40 of file example_mirror.c.