Adlink aTCA-N700 User Manual

Browse online or download User Manual for Hardware Adlink aTCA-N700. ADLINK aTCA-N700 User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 42
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
ADLINK Switch Manager
API Programming Guide
Manual Revision: 1.00
Revision Date: August 28, 2013
Part Number: 50-1G026-1000
Advance Technologies; Automate the World.
Page view 0
1 2 3 4 5 6 ... 41 42

Summary of Contents

Page 1 - API Programming Guide

ADLINK Switch Manager API Programming Guide Manual Revision: 1.00 Revision Date: August 28, 2013 Part Number: 50-1G026-1000 A

Page 2 - Revision History

Switch Manager API Programming Guide 10 List of Tables Table 1- 1, Return Code Description...

Page 3 - Preface

Switch Manager API Programming Guide 11 Introduction This guide describes the how to program ADLINK Switch Management APIs on ADLINK's switc

Page 4 - Table of Contents

Switch Manager API Programming Guide 12 Deliverables The ADLINK Switch Manager Library package (adSwitchLib-x.x.x.tar.gz) provides the following s

Page 5

Switch Manager API Programming Guide 13 Table 1- 1, Return Code Description Return Code Description ADLINK_E_NONE API run successfully ADLIN

Page 6

Switch Manager API Programming Guide 14 PARAMETERS None RETURN See the description of status_t above. Section 2: VLAN This section describes the

Page 7

Switch Manager API Programming Guide 15 UINT8 created; /*whether it is created on hardware*/ UINT8 rsv1[2]; /*for align purpo

Page 8

Switch Manager API Programming Guide 16 adlink_vlan_admin_status_set () PROTOTYPE status_t adlink_vlan_admin_status_set (int vlan, int status); D

Page 9 - List of Figures

Switch Manager API Programming Guide 17 PARAMETERS vlan [IN] The VLAN ID to be destroyed; RETURN See the description of status_t in Section

Page 10 - List of Tables

Switch Manager API Programming Guide 18 See the description of status_t in Section 1. adlink_mac_based_vlan_add () adlink_mac_based_vlan_del () a

Page 11 - Architecture Overview

Switch Manager API Programming Guide 19 Section 3: Port This section describes the macro, enum, struct and function for port. They are defined in

Page 12 - Section 1: Base

Switch Manager API Programming Guide 2 Revision History Rev Date Description 1.00 28/8/2013 Initial release

Page 13 - Functions

Switch Manager API Programming Guide 20 TAPNAMSIZ Define the maximum length of a NIC device name. Enum Type port_duplex_t typedef enum port_duple

Page 14 - Section 2: VLAN

Switch Manager API Programming Guide 21 port_stp_state_t typedef enum port_stp_state_e { /*Heritage */ PORT_STP_DISABLE = 0, /* Disabled.

Page 15

Switch Manager API Programming Guide 22 Data Structure adlink_port_info_t typedef struct adlink_port_info_s { int enable; int linkstatus

Page 16

Switch Manager API Programming Guide 23 UINT32 rx_pkt_rate; UINT32 tx_byte_num; UINT32 tx_byte_rate; UINT32 tx_pkt_num; UINT32

Page 17

Switch Manager API Programming Guide 24 UINT32 mask; UINT32 status; }adl_nic_config_info_t; Define the format of retrieved NIC info. adl_

Page 18

Switch Manager API Programming Guide 25 PARAMETERS cmd [IN] Port attributes to be set; RETURN See the description of status_t in Section 1.

Page 19 - Section 3: Port

Switch Manager API Programming Guide 26 RETURN See the description of status_t in Section 1. adlink_nic_config_set () adlink_nic_config_get() PR

Page 20 - Enum Type

Switch Manager API Programming Guide 27 PARAMETERS src_port [IN] Ingress port; dst_port [IN|OUT] Destination port traffic will be delivere

Page 21

Switch Manager API Programming Guide 28 Data Structure adlink_trunk_monitor_t typedef struct tm_port_node_s { UINT32 id; /*port numbe

Page 22 - Data Structure

Switch Manager API Programming Guide 29 RETURN See the description of status_t in Section 1. adlink_trunk_clear () PROTOTYPE status_t adlink_tru

Page 23

Switch Manager API Programming Guide 3 Preface Copyright 2013 ADLINK Technology, Inc. This document contains proprietary information protected by

Page 24

Switch Manager API Programming Guide 30 This function is used to get trunk group information. PARAMETERS tid [IN] Trunk group id; Start fro

Page 25

Switch Manager API Programming Guide 31 Section 5: Layer-2 This section describes the macro, enum, struct and function for Layer-2. They are defin

Page 26

Switch Manager API Programming Guide 32 Functions adlink_mac_entry_add () adlink_mac_entry_del () adlink_mac_table_clear () PROTOTYPE status_t adl

Page 27 - Section 4: Trunk

Switch Manager API Programming Guide 33 Section 6: ACL This section describes the macro, enum, struct and function for ACL. They are defined in th

Page 28

Switch Manager API Programming Guide 34 Table 6- 1, Qualifier Type Description Qualifier Type Description INPORTS Filter for the port ID a packe

Page 29

Switch Manager API Programming Guide 35 UINT16 data16; //data16 use, such as l4port UINT8 data8; //data8 use, such as ip protocol

Page 30

Switch Manager API Programming Guide 36 Table 6- 4, Data Descriptions for Different Action Types Action Type Param0 Param1 REDIRECTPORT data32

Page 31 - Section 5: Layer-2

Switch Manager API Programming Guide 37 DESCRIPTION This function is used to delete an ACL rule. PARAMETERS rule _id [IN] the ID of the ACL

Page 32

Switch Manager API Programming Guide 38 Section 7: Static Route This section describes the macro, enum, struct and function for route. They are de

Page 33 - Section 6: ACL

Switch Manager API Programming Guide 39 Functions adlink_route_add () PROTOTYPE status_t adlink_route_add (adlink_route_info_t *route_info); DESC

Page 34

Switch Manager API Programming Guide 4 Table of Contents Revision History...

Page 35

Switch Manager API Programming Guide 40 PARAMETERS None RETURN See the description of status_t in Section 1. adlink_route_table_dump () PROTOTYP

Page 36

Switch Manager API Programming Guide 41 Getting Service ADLINK Technology, Inc. Address: 9F, No.166 Jian Yi Road, Zhonghe District New Taipei

Page 37

Switch Manager API Programming Guide 42 ADLINK Technology Japan Corporation Address: KANDA374 Bldg. 4F, 3-7-4 Kanda Kajicho, Chiyoda-ku, Tokyo

Page 38 - Section 7: Static Route

Switch Manager API Programming Guide 5 adlink_vlan_member_del () ...

Page 39

Switch Manager API Programming Guide 6 adl_nic_config_info_t...

Page 40

Switch Manager API Programming Guide 7 adlink_trunk_monitor_del () ...

Page 41 - Getting Service

Switch Manager API Programming Guide 8 Macro Definitions.......

Page 42

Switch Manager API Programming Guide 9 List of Figures Figure 1,Hardware architecture for programming............

Comments to this Manuals

No comments