title: Maximum size of ICMP IPv6 packet
body: <p>With reference to <a href="https://stackoverflow.com/questions/9449837/maximum-legal-size-of-icmp-echo-packet">this</a> question and to <a href="http://think-async.com/" rel="nofollow noreferrer">ASIO libary</a>, I would like to know what is the maximum size of ICMP v6 reply packet. I'm using ASIO library to listen for and receive ICMPv6 packets, but I don't know what size of buffer to use in order to prevent buffer over flow. I'm confused by IPv6 supporting extension headers.</p>
  
  <p>Ex code:</p>
  
  <pre><code>asio::streambuf replyBuffer;
  replyBuffer.consume(replyBuffer.size());
  size_t length = icmpV6Socket-&gt;receive(replyBuffer.prepare(65536) );
  </code></pre>