nat44-out2in node:
u32 next0 = SNAT_OUT2IN_NEXT_LOOKUP; 
<...>
vlib_validate_buffer_enqueue_x1 (vm, node, next_index, to_next, n_left_to_next, 
bi0, next0); 

whatever you specify in VNET_FEATURE_INIT runs_before is ignored for 
nat44-out2in, normally when you want continue to nex node in feature arc you 
use vnet_feature_next(), but this is not possible in NAT (nat44-out2in is not 
always configured as interface feature, e.g. worker handoff in case of 
multithreading or combined in-out NAT interface).

Matus

-----Original Message-----
From: Raj <rajlistu...@gmail.com> 
Sent: Tuesday, January 22, 2019 3:22 PM
To: Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco) 
<matfa...@cisco.com>
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Configuring NAT and Policing together

On Tue, Jan 22, 2019 at 7:44 PM Matus Fabian -X (matfabia - PANTHEON 
TECHNOLOGIES at Cisco) <matfa...@cisco.com> wrote:
> I don't think it is working way you wanted since nat44-out2in goes directly 
> to ip4-lookup instead of continue in feature arc to ip4-policer-classify.

Yes, you were right. My conclusion was premature. I still do not quite 
understand VNET_FEATURE_INIT to route the traffic the way I want. A sample code 
fragment would be very helpful.

Thanks and Regards,

Raj
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11972): https://lists.fd.io/g/vpp-dev/message/11972
Mute This Topic: https://lists.fd.io/mt/29379239/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-
  • [... Raj
    • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
      • ... Raj
        • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
          • ... Raj
            • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
              • ... Raj
                • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
                • ... Raj
                • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
                • ... Raj
                • ... Raj
                • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
                • ... Raj

Reply via email to