Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-380

Mapping algorithm compute wrong ea-bits when IPv4 prefix 0.0.0.0/0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • 18.07
    • MAP
    • None

    Description

      VAT configuration
      tap_connect tapname tap_int0 mac 02:00:00:00:55:00
      tap_connect tapname tap_int1 mac 02:00:00:00:55:01
      sw_interface_set_flags sw_if_index 5 admin-up
      sw_interface_set_flags sw_if_index 6 admin-up
      sw_interface_add_del_address sw_if_index 5 2001:0::1/64
      sw_interface_add_del_address sw_if_index 6 10.0.0.1/24
      ip_add_del_route ::/0 via 2001:0::2 sw_if_index 5
      ip_add_del_route 100.0.0.1/32 via 10.0.0.2 sw_if_index 6

      ip_neighbor_add_del sw_if_index 5 dst 2001:0::2 mac 08:00:27:46:2b:4c
      ip_neighbor_add_del sw_if_index 6 dst 10.0.0.2 mac 08:00:27:54:33:23

      ea_bit_length + ipv4_pfx_length (0) >= 32
      psid_offset = 0
      psid_len = 0
      ipv6_src = 2001:db8:ffff::1
      ipv4_src = 100.0.0.1
      ipv4_dst = 20.169.201.219
      udp_dst_port = 1232

      map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 0 psid-len 0
      Received DST: 2001:db8::14a9:c9db:0
      Expected DST: 2001:db8:14a9:c9db:0:14a9:c9db:0

      map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
      Received DST: 2001::3400:0:14a9:c9db:34
      Expected DST: 2001:14a9:c9db:3400:0:14a9:c9db:34

      show version
      vpp v16.12-rc0~56-ge016b5e~b1078 built by jenkins on cjac-vagrant at Sat Sep 3 20:53:48 UTC 2016

      Attachments

        Issue Links

          Activity

            People

              otroan Ole Trøan
              mklotton Matej Klotton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: