Hi Vyshakh,

A well placed call to:
  ip_neighbor_learn_dp()
would do the job. Then some tests in test_ip6.py TestIPv6RD.

/neale

On 09/04/2020 07:42, "vpp-dev@lists.fd.io on behalf of Ole Troan" 
<vpp-dev@lists.fd.io on behalf of otr...@employees.org> wrote:

    Vyshakh,
    
    That’s certainly what the RFC says. 
    Care to submit a patch?
    
    Cheers 
    Ole
    
    > On 9 Apr 2020, at 06:10, vyshakh krishnan via lists.fd.io 
<vyshakh=rtbrick....@lists.fd.io> wrote:
    > 
    > 
    > Hi,
    > 
    > VPP is not learning the MAC address on receiving an RA. Even after 
receiving  multiple RAs from a neighbor, ping to the link local address of that 
neighbor results in a NS/NA resulting in the drop of 1st ping packet. Is this 
expected?
    > Just like learning the MAC from NA/NS, why can't learning be triggered 
for an RA?
    > 
    > Packet 3
    > 
    > 00:30:08:261191: memif-input
    >   memif: hw_if_index 1 next-index 4
    >     slot: ring 0
    > 00:30:08:261208: ethernet-input
    >   frame: flags 0x1, hw-if-index 1, sw-if-index 1
    >   IP6: 7a:55:92:76:00:01 -> 33:33:00:00:00:01
    > 00:30:08:261217: ip6-input
    >   ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >     tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >   ICMP router_advertisement checksum 0xfc3d
    > 00:30:08:261236: ip6-mfib-forward-lookup
    >   fib 0 entry 4
    > 00:30:08:261246: ip6-mfib-forward-rpf
    >   entry 4 itf 1 flags Accept,
    > 00:30:08:261250: ip6-replicate
    >   replicate: 2 via [@1]: dpo-receive
    > 00:30:08:261255: ip6-local
    >     ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >       tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >     ICMP router_advertisement checksum 0xfc3d
    > 00:30:08:261279: ip6-icmp-input
    >   ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >     tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >   ICMP router_advertisement checksum 0xfc3d
    > 00:30:08:261288: icmp6-router-advertisement
    >   ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >     tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >   ICMP router_advertisement checksum 0xfc3d
    > 00:30:08:261299: ip6-drop
    >     ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >       tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >     ICMP router_advertisement checksum 0xfc3d
    > 00:30:08:261302: error-drop
    >   rx:memif11/11
    > 00:30:08:261303: drop
    >   ip6-icmp-input: valid packets
    > 
    > Packet 4
    > 
    > 00:30:17:270341: memif-input
    >   memif: hw_if_index 1 next-index 4
    >     slot: ring 0
    > 00:30:17:286366: ethernet-input
    >   frame: flags 0x1, hw-if-index 1, sw-if-index 1
    >   IP6: 7a:55:92:76:00:01 -> 33:33:00:00:00:01
    > 00:30:17:286375: ip6-input
    >   ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >     tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >   ICMP router_advertisement checksum 0xfc3d
    > 00:30:17:286381: ip6-mfib-forward-lookup
    >   fib 0 entry 4
    > 00:30:17:286388: ip6-mfib-forward-rpf
    >   entry 4 itf 1 flags Accept,
    > 00:30:17:286392: ip6-replicate
    >   replicate: 2 via [@1]: dpo-receive
    > 00:30:17:286396: ip6-local
    >     ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >       tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >     ICMP router_advertisement checksum 0xfc3d
    > 00:30:17:286404: ip6-icmp-input
    >   ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >     tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >   ICMP router_advertisement checksum 0xfc3d
    > 00:30:17:286407: icmp6-router-advertisement
    >   ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >     tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >   ICMP router_advertisement checksum 0xfc3d
    > 00:30:17:286415: ip6-drop
    >     ICMP6: fe80::7855:92ff:fe76:1 -> ff02::1
    >       tos 0x00, flow label 0x0, hop limit 255, payload length 32
    >     ICMP router_advertisement checksum 0xfc3d
    > 00:30:17:286417: error-drop
    >   rx:memif11/11
    > 00:30:17:286422: drop
    >   ip6-icmp-input: valid packets
    > 
    > DBGvpp# ping fe80::7855:92ff:fe76:1 source memif-0/0/0/10
    > 76 bytes from fe80::7855:92ff:fe76:1: icmp_seq=2 ttl=63 time=28.0089 ms
    > 76 bytes from fe80::7855:92ff:fe76:1: icmp_seq=3 ttl=63 time=28.0221 ms
    > 76 bytes from fe80::7855:92ff:fe76:1: icmp_seq=4 ttl=63 time=24.0218 ms
    > 76 bytes from fe80::7855:92ff:fe76:1: icmp_seq=5 ttl=63 time=32.0252 ms
    > 
    > Statistics: 5 sent, 4 received, 20% packet loss
    > DBGvpp# 
    > 
    > Thanks
    > Vyshakh
    > 
    

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

View/Reply Online (#16039): https://lists.fd.io/g/vpp-dev/message/16039
Mute This Topic: https://lists.fd.io/mt/72890243/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