---
source: src/diagrams/packet/renderer.rs
expression: "crate::svg::normalize_floats(&svg)"
---
<svg id="mermaid-packet" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1026 141" style="max-width: 1026px;" font-family="Arial, sans-serif" role="graphics-document document" aria-roledescription="packet" aria-labelledby="chart-title-mermaid-packet"><title id="chart-title-mermaid-packet">Packet</title><g></g><g><rect x="1" y="15" width="507" height="32" fill="#efefef" stroke="black" stroke-width="1" class="packetBlock"></rect><text x="254.5" y="31" fill="black" font-size="12px" class="packetLabel" dominant-baseline="middle" text-anchor="middle">Source Port</text><text x="1" y="13" fill="black" font-size="10px" class="packetByte start" dominant-baseline="auto" text-anchor="start">0</text><text x="508" y="13" fill="black" font-size="10px" class="packetByte end" dominant-baseline="auto" text-anchor="end">15</text><rect x="513" y="15" width="507" height="32" fill="#efefef" stroke="black" stroke-width="1" class="packetBlock"></rect><text x="766.5" y="31" fill="black" font-size="12px" class="packetLabel" dominant-baseline="middle" text-anchor="middle">Destination Port</text><text x="513" y="13" fill="black" font-size="10px" class="packetByte start" dominant-baseline="auto" text-anchor="start">16</text><text x="1020" y="13" fill="black" font-size="10px" class="packetByte end" dominant-baseline="auto" text-anchor="end">31</text></g><g><rect x="1" y="62" width="1019" height="32" fill="#efefef" stroke="black" stroke-width="1" class="packetBlock"></rect><text x="510.5" y="78" fill="black" font-size="12px" class="packetLabel" dominant-baseline="middle" text-anchor="middle">Sequence Number</text><text x="1" y="60" fill="black" font-size="10px" class="packetByte start" dominant-baseline="auto" text-anchor="start">32</text><text x="1020" y="60" fill="black" font-size="10px" class="packetByte end" dominant-baseline="auto" text-anchor="end">63</text></g><text x="513" y="117.5" fill="black" font-size="14px" dominant-baseline="middle" text-anchor="middle" class="packetTitle">TCP</text></svg>
