@@ -602,6 +602,14 @@ typedef struct _SFLExtended_decap {
602602 uint32_t innerHeaderOffset ;
603603} SFLExtended_decap ;
604604
605+ /* Software function */
606+ /* Name of software function generating this event */
607+ /* opaque = flow_data; enterprise = 0; format = 1038 */
608+ typedef struct _SFLExtended_function {
609+ SFLString symbol ;
610+ } SFLExtended_function ;
611+ #define SFL_MAX_FUNCTION_SYMBOL_LEN 64
612+
605613enum SFLFlow_type_tag {
606614 /* enterprise = 0, format = ... */
607615 SFLFLOW_HEADER = 1 , /* Packet headers are sampled */
@@ -635,6 +643,7 @@ enum SFLFlow_type_tag {
635643 SFLFLOW_EX_DECAP_IN = 1028 ,
636644 SFLFLOW_EX_VNI_OUT = 1029 ,
637645 SFLFLOW_EX_VNI_IN = 1030 ,
646+ SFLFLOW_EX_FUNCTION = 1038 ,
638647 SFLFLOW_EX_SOCKET4 = 2100 ,
639648 SFLFLOW_EX_SOCKET6 = 2101 ,
640649 SFLFLOW_EX_PROXYSOCKET4 = 2102 ,
@@ -683,6 +692,7 @@ typedef union _SFLFlow_type {
683692 SFLExtended_decap tunnel_decap ;
684693 SFLExtended_TCP_info tcp_info ;
685694 SFLExtended_entities entities ;
695+ SFLExtended_function function ;
686696} SFLFlow_type ;
687697
688698typedef struct _SFLFlow_sample_element {
0 commit comments