Function ndpi_detection_get_l4
- Defined in File ndpi_api.h 
Function Documentation
- 
u_int8_t ndpi_detection_get_l4(const u_int8_t *l3, u_int16_t l3_len, const u_int8_t **l4_return, u_int16_t *l4_len_return, u_int8_t *l4_protocol_return, u_int32_t flags)
- Query the pointer to the layer 4 packet - l3 = pointer to the layer 3 data
- l3_len = length of the layer 3 data
- l4_return = address to the pointer of the layer 4 data if return value == 0, else undefined
- l4_len_return = length of the layer 4 data if return value == 0, else undefined
- l4_protocol_return = protocol of the layer 4 data if return value == 0, undefined otherwise
- flags = limit operation on ipv4 or ipv6 packets. Possible values: NDPI_DETECTION_ONLY_IPV4 - NDPI_DETECTION_ONLY_IPV6 - 0 (any)
 - Returns:
- 0 if layer 4 data could be found correctly; else != 0