Files
pcap-web-tools/internal/web/templates/reorder.html
T

30 lines
1.1 KiB
HTML

{{define "title"}}Reorder pcap{{end}}
{{define "toolbar-info"}}<span class="toolbar-info">Sort packets by timestamp, like <code>reordercap</code></span>{{end}}
{{define "content"}}
{{with .Data}}
{{if .Error}}<div class="error" role="alert">{{.Error}}</div>{{end}}
<form method="post" action="/reorder" enctype="multipart/form-data">
<section class="widget">
<div class="widget-title"><h2>Reorder</h2></div>
<div class="widget-content">
<p class="note">
Packets with the same timestamp keep their original order. Packet data and the file header are not changed.
</p>
<label for="file">pcap file <span class="hint">classic pcap, up to {{.MaxUpload}}. Convert pcapng with <code>editcap -F pcap</code></span></label>
<input id="file" name="file" type="file" accept=".pcap,.cap,.dmp,application/vnd.tcpdump.pcap" required>
<p class="note">If the capture ends with a truncated packet, that packet is dropped.</p>
<div class="actions">
<button type="submit" class="btn primary">Reorder and download</button>
</div>
</div>
</section>
</form>
{{end}}
{{end}}