<div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Hi,</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Kea migration story continues :)</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">I have lab system with isc-dhcp-server and kea installed.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">I stuck on issue of handling malformed packets.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">ISC-DHCP handles them flawlesly yet kea throws weird error:<br>DEBUG DHCP4_LEASE_QUERY_PACKET_UNPACK_FAILED failed to parse query from 10.0.0.1 to 172.16.0.10, received over interface ens18, reason: Option parse failed. Tried to parse 161 bytes from 158-byte long buffer.<br><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">This is not LEASE QUERY packet at all. pcap shows this is malformed packet where option125 length reported by CableModem is just wrong.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Below is wireshark text about exactly that packet that causes problem - it was captured on dhcpd server.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">To emphasise - turning off kea, starting isc-dhcp - and modem gets IP, turning off isc-dhcp enabling kea - I'm getting this error and modem is not getting IP.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br>---------------</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:Iosevka,Menlo,Monaco,"Courier New",monospace,Menlo,Monaco,"Courier New",monospace;font-weight:normal;font-size:13px;line-height:20px;white-space:pre"><div><span style="color:rgb(206,145,120)">Dynamic Host Configuration Protocol (Discover)</span></div><div><span style="color:rgb(206,145,120)">    Message type</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Boot Request (1)</span></div><div><span style="color:rgb(206,145,120)">    Hardware type</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Ethernet (0x01)</span></div><div><span style="color:rgb(206,145,120)">    Hardware address length</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 6</span></div><div><span style="color:rgb(206,145,120)">    Hops</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 1</span></div><div><span style="color:rgb(206,145,120)">    Transaction ID</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 0x7f9762fa</span></div><div><span style="color:rgb(206,145,120)">    Seconds elapsed</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 0</span></div><div><span style="color:rgb(206,145,120)">    Bootp flags</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 0x0000 (Unicast)</span></div><div><span style="color:rgb(206,145,120)">    Client IP address</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 0.0.0.0</span></div><div><span style="color:rgb(206,145,120)">    Your (client) IP address</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 0.0.0.0</span></div><div><span style="color:rgb(206,145,120)">    Next server IP address</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 0.0.0.0</span></div><div><span style="color:rgb(206,145,120)">    Relay agent IP address</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 10.0.0.1</span></div><div><span style="color:rgb(206,145,120)">    Client MAC address</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> CompalBroadb_de:de:58 (90:5c:44:de:de:58)</span></div><div><span style="color:rgb(206,145,120)">    Client hardware address padding</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 00000000000000000000</span></div><div><span style="color:rgb(206,145,120)">    Server host name not given</span></div><div><span style="color:rgb(206,145,120)">    Boot file name not given</span></div><div><span style="color:rgb(206,145,120)">    Magic cookie</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> DHCP</span></div><div><span style="color:rgb(206,145,120)">    Option</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (53) DHCP Message Type (Discover)</span></div><div><span style="color:rgb(206,145,120)">        Length</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 1</span></div><div><span style="color:rgb(206,145,120)">        DHCP</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Discover (1)</span></div><div><span style="color:rgb(206,145,120)">    Option</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (60) Vendor class identifier</span></div><div><span style="color:rgb(206,145,120)">    Option</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (0) Padding</span></div><div><span style="color:rgb(206,145,120)">    Option</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (61) Client identifier</span></div><div><span style="color:rgb(206,145,120)">        Length</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 15</span></div><div><span style="color:rgb(206,145,120)">        IAID</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 44dede58</span></div><div><span style="color:rgb(206,145,120)">        DUID Type</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> link-layer address (3)</span></div><div><span style="color:rgb(206,145,120)">        Hardware type</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Ethernet (1)</span></div><div><span style="color:rgb(206,145,120)">        Link layer address</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 90:5c:44:de:de:58</span></div><div><span style="color:rgb(206,145,120)">        Link layer address (Ethernet)</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> CompalBroadb_de:de:58 (90:5c:44:de:de:58)</span></div><div><span style="color:rgb(206,145,120)">    Option</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (125) V-I Vendor-specific Information</span></div><div><span style="color:rgb(206,145,120)">        Length</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 162</span></div><div><span style="color:rgb(206,145,120)">        Enterprise</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Cable Television Laboratories, Inc. (4491)</span></div><div><span style="color:rgb(206,145,120)">            Length</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 157</span></div><div><span style="color:rgb(206,145,120)">            Option 125 Suboption</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (124) Unknown</span></div><div><span style="color:rgb(206,145,120)">            Option 125 Suboption</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (1) Option Request</span></div><div><span style="color:rgb(206,145,120)">            Option 125 Suboption</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> (5) Modem Capabilities</span></div><div><span style="color:rgb(206,145,120)">                Length</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> 150</span></div><div><span style="color:rgb(206,145,120)">[Malformed Packet</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> DHCP/BOOTP</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> length of contained item exceeds length of containing item]</span></div><div><span style="color:rgb(206,145,120)">    [Expert Info (Error/Malformed)</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Malformed Packet (Exception occurred)]</span></div><div><span style="color:rgb(206,145,120)">        [Malformed Packet (Exception occurred)]</span></div><div><span style="color:rgb(206,145,120)">        [Severity level</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Error]</span></div><div><span style="color:rgb(206,145,120)">        [Group</span><span style="color:rgb(244,71,71)">:</span><span style="color:rgb(206,145,120)"> Malformed]</span></div></div><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Thanks in advance</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div></div>