Hi,

In vnet_classify.h I found this comment:

“CLASSIFY_FLAG_USE_CURR_DATA:
  - classify packets starting from VPP node’s current data pointer”

But then in the function 
ip_in_out_acl_inline<https://docs.fd.io/vpp/19.04/d9/de2/ip__in__out__acl_8c.html#a388ee2f948a5dd089c038d8f12dd28a7>
 (in ip_in_out_acl.c) I see the following:

“if (t0->current_data_flag == CLASSIFY_FLAG_USE_CURR_DATA)
    h0 = (void *) vlib_buffer_get_current (b0) + t0->current_data_offset;
  else
    h0 = b0->data;“

I was wondering why t0->current_data_offset is added to the current data 
pointer. Unless I’m missing something, in case t0->current_data_flag == 
CLASSIFY_FLAG_USE_CURR_DATA, h0 does not point to the current data pointer and 
the classification of packets is not correct.

Regards,
Alberto
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12644): https://lists.fd.io/g/vpp-dev/message/12644
Mute This Topic: https://lists.fd.io/mt/30788688/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to