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

Invalid UDP packet length in ipsec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Open
    • Icon: Medium Medium
    • None
    • None
    • IPsec
    • None

      There is an invalid udp header length calculation in ipsec code:

      src/vnet/ipsec/esp_encrypt.c:395

       

      ouh0->udp.length =
      clib_host_to_net_u16 (oh0->ip4.length - ip4_header_bytes (&oh0->ip4));		
      

      since oh0->ip4.length is already in a network order resulting udp length will be invalid.

       

       

            KlementSekera Klement Sekera
            ioremap Alexander Kotov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: