Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?

2021-04-13 Thread hemant via lists.fd.io
Benoit,

Got it, thanks.  Humble apologies because I have a few vpp repos on my
machine and reported the failure from an older repo thinking it's a latest
repo.  I found arping on downloading a new VPP repo today.  I will play with
it.

Thanks,

Hemant

-Original Message-
From: vpp-dev@lists.fd.io  On Behalf Of Benoit Ganne
(bganne) via lists.fd.io
Sent: Tuesday, April 13, 2021 3:34 AM
To: hem...@mnkcg.com; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?

Hi Hemant,

Did you try the new arping plugin https://gerrit.fd.io/r/c/vpp/+/22819 ?

Best
ben

> -Original Message-
> From: vpp-dev@lists.fd.io  On Behalf Of hemant 
> via lists.fd.io
> Sent: lundi 12 avril 2021 19:58
> To: hem...@mnkcg.com; vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?
> 
> Dave Barach has a gdb VPP video that uses the "ip probe-neighbor".
> However, clearly, VPP does not support this CLI anymore.  Thanks to 
> Damjan to find this commit that removed the CLI:
> https://gerrit.fd.io/r/c/vpp/+/22819
> 
> 
> 
> Neale,
> 
> 
> 
> What is the alternative? Do I create a dynamic ARP entry and then 
> probes are sent and I gather info from probe request and reply?
> 
> 
> 
> Also, I have used Cisco router hardware which is always able to ping 
> an IP address configured on an interface of the router from router 
> console. Why does VPP fail?
> 
> 
> 
> Thanks,
> 
> 
> 
> Hemant
> 
> 
> 
> From: vpp-dev@lists.fd.io  On Behalf Of hemant 
> via lists.fd.io
> Sent: Sunday, April 11, 2021 11:05 PM
> To: vpp-dev@lists.fd.io
> Subject: [vpp-dev] ip probe or ip probe-neighbor not in my build?
> 
> 
> 
> I am using a fairly recent VPP repo in my private built.  I cannot 
> find "ip probe" or "ip probe-neighbor" for CLI in my VPP shell. I also 
> fail ping to a network interface which is odd.
> 
> 
> 
> vpp# sh interface address
> 
> TenGigabitEthernet3/0/0 (up):
> 
>   L3 10.10.1.1/24
> 
> TenGigabitEthernet3/0/1 (up):
> 
>   L3 10.10.2.1/24
> 
> local0 (dn):
> 
> vpp# ping 10.10.1.1
> 
> 
> 
> Statistics: 5 sent, 0 received, 100% packet loss
> 
> vpp# ip p?
> 
>   ip punt policer  ip punt policer [add|del]
> 
> 
>   ip punt redirect ip punt redirect [add|del] rx
> [|all] via [] 
> 
> vpp#
> 
> 
> 
> Hemant



smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19186): https://lists.fd.io/g/vpp-dev/message/19186
Mute This Topic: https://lists.fd.io/mt/82029801/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?

2021-04-13 Thread Benoit Ganne (bganne) via lists.fd.io
Hi Hemant,

Did you try the new arping plugin https://gerrit.fd.io/r/c/vpp/+/22819 ?

Best
ben

> -Original Message-
> From: vpp-dev@lists.fd.io  On Behalf Of hemant via
> lists.fd.io
> Sent: lundi 12 avril 2021 19:58
> To: hem...@mnkcg.com; vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] ip probe or ip probe-neighbor not in my build?
> 
> Dave Barach has a gdb VPP video that uses the "ip probe-neighbor".
> However, clearly, VPP does not support this CLI anymore.  Thanks to Damjan
> to find this commit that removed the CLI:
> https://gerrit.fd.io/r/c/vpp/+/22819
> 
> 
> 
> Neale,
> 
> 
> 
> What is the alternative? Do I create a dynamic ARP entry and then probes
> are sent and I gather info from probe request and reply?
> 
> 
> 
> Also, I have used Cisco router hardware which is always able to ping an IP
> address configured on an interface of the router from router console. Why
> does VPP fail?
> 
> 
> 
> Thanks,
> 
> 
> 
> Hemant
> 
> 
> 
> From: vpp-dev@lists.fd.io  On Behalf Of hemant via
> lists.fd.io
> Sent: Sunday, April 11, 2021 11:05 PM
> To: vpp-dev@lists.fd.io
> Subject: [vpp-dev] ip probe or ip probe-neighbor not in my build?
> 
> 
> 
> I am using a fairly recent VPP repo in my private built.  I cannot find
> "ip probe" or "ip probe-neighbor" for CLI in my VPP shell. I also fail
> ping to a network interface which is odd.
> 
> 
> 
> vpp# sh interface address
> 
> TenGigabitEthernet3/0/0 (up):
> 
>   L3 10.10.1.1/24
> 
> TenGigabitEthernet3/0/1 (up):
> 
>   L3 10.10.2.1/24
> 
> local0 (dn):
> 
> vpp# ping 10.10.1.1
> 
> 
> 
> Statistics: 5 sent, 0 received, 100% packet loss
> 
> vpp# ip p?
> 
>   ip punt policer  ip punt policer [add|del]
> 
> 
>   ip punt redirect ip punt redirect [add|del] rx
> [|all] via [] 
> 
> vpp#
> 
> 
> 
> Hemant


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19185): https://lists.fd.io/g/vpp-dev/message/19185
Mute This Topic: https://lists.fd.io/mt/82029801/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] A question about 'dpo_get_next_node()'

2021-04-13 Thread liuyacan






Hi, All  I'm confused with the function 'dpo_get_next_node()'.   The comment says it create a graph arc from each of   the child's registered node types to "each" of the parent's.  But if the parent_indices is a vector, assertions will be   triggered. So it implies that caller must guarantee the   next node of parent dpo has only one slot.  Is that right ?         vec_foreach(pi, parent_indices)                    <- where i am confused with    {        edge = vlib_node_add_next(vm, child_node->index, *pi);        if (~0 == dpo_edges[child_type][child_proto][parent_type][parent_proto])        {            dpo_edges[child_type][child_proto][parent_type][parent_proto] = edge;        }        else        {            ASSERT(dpo_edges[child_type][child_proto][parent_type][parent_proto] == edge);          }    }Best Regards,Yacan
 




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19184): https://lists.fd.io/g/vpp-dev/message/19184
Mute This Topic: https://lists.fd.io/mt/82059257/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-