openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

bfd_sdk_pack.h (2764B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * File:    bfd_feature.h
      8  */
      9 
     10 #ifndef BFD_SDK_PACK_H_
     11 #define BFD_SDK_PACK_H_
     12 
     13 #if defined(INCLUDE_BFD)
     14 
     15 #include <soc/shared/bfd_msg.h>
     16 #include <bcm_int/esw/bfd_feature.h>
     17 #include <soc/defs.h>
     18 #include <bcm_int/esw/bfd_sdk_msg.h>
     19 
     20 uint8 *
     21 bfd_sdk_msg_ctrl_init_pack(uint8 *buf, bfd_sdk_msg_ctrl_init_t *msg);
     22 
     23 
     24 uint8 *bfd_sdk_msg_ctrl_stat_reply_unpack(uint8 *buf, bfd_sdk_msg_ctrl_stat_reply_t *msg,
     25                                           uint8 stat64bit);
     26 
     27 uint8 *bfd_sdk_msg_ctrl_stat_req_pack(uint8 *buf, bfd_sdk_msg_ctrl_stat_req_t *msg);
     28 
     29 uint8 * bfd_sdk_version_exchange_msg_unpack(uint8 *buf,
     30                                     bfd_sdk_version_exchange_msg_t *msg);
     31 
     32 uint8 * bfd_sdk_version_exchange_msg_pack(uint8 *buf,
     33                                     bfd_sdk_version_exchange_msg_t *msg);
     34 
     35 uint8 *
     36 bfd_sdk_msg_ctrl_sess_set_pack(uint8 *buf,
     37                                bfd_sdk_msg_ctrl_sess_set_t *msg);
     38 uint8 *
     39 bfd_sdk_msg_ctrl_sess_get_unpack(uint8 *buf,
     40                                  bfd_sdk_msg_ctrl_sess_get_t *msg);
     41 uint8 *
     42 bfd_sdk_msg_ctrl_discard_stat_get_unpack(uint8 *buf,
     43                                          bfd_sdk_msg_ctrl_discard_stat_get_t *msg);
     44 uint8 *
     45 bfd_sdk_msg_ctrl_auth_sha1_pack(uint8 *buf,
     46                                 shr_bfd_msg_ctrl_auth_sha1_t *msg);
     47 uint8 *
     48 shr_bfd_msg_ctrl_auth_sha1_pack(uint8 *buf,
     49                                 shr_bfd_msg_ctrl_auth_sha1_t *msg);
     50 uint8 *
     51 bfd_sdk_msg_ctrl_auth_sha1_unpack(uint8 *buf,
     52                                   shr_bfd_msg_ctrl_auth_sha1_t *msg);
     53 uint8 *
     54 bfd_sdk_msg_ctrl_auth_sp_pack(uint8 *buf, shr_bfd_msg_ctrl_auth_sp_t *msg);
     55 uint8 *
     56 bfd_sdk_msg_ctrl_auth_sp_unpack(uint8 *buf, shr_bfd_msg_ctrl_auth_sp_t *msg);
     57 uint8 *
     58 shr_bfd_msg_ctrl_auth_sha1_unpack(uint8 *buf,
     59                                   shr_bfd_msg_ctrl_auth_sha1_t *msg);
     60 
     61 uint8 *
     62 shr_bfd_msg_ctrl_auth_sp_pack(uint8 *buf, shr_bfd_msg_ctrl_auth_sp_t *msg);
     63 
     64 uint8 *
     65 shr_bfd_msg_ctrl_auth_sp_unpack(uint8 *buf, shr_bfd_msg_ctrl_auth_sp_t *msg);
     66 
     67 #if defined( BCM_TOMAHAWK_SUPPORT)
     68 uint8 *
     69 bfd_sdk_msg_port_txqueue_map_pack(uint8 *buf,
     70                                 bfd_sdk_msg_port_txqueue_map_t *msg);
     71 #endif
     72 
     73 uint8 * bfd_sdk_msg_ctrl_trace_log_enable_unpack(uint8 *buf,
     74                                                bfd_sdk_msg_ctrl_trace_log_enable_t *msg);
     75 
     76 #if defined(BCM_TRIDENT3_SUPPORT)
     77 uint8 *
     78 bfd_sdk_msg_match_id_map_pack(uint8 *buf,
     79                               bfd_sdk_msg_match_id_map_t *msg);
     80 #endif
     81 
     82 #endif /* INCLUDE_BFD */
     83 
     84 #endif /* BFD_SDK_PACK_H_ */
     85