Skip to content

Commit 45f6c68

Browse files
committed
core: add missing pcap file
1 parent 12d6239 commit 45f6c68

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

intra/core/pcap.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) 2024 RethinkDNS and its authors.
2+
//
3+
// This Source Code Form is subject to the terms of the Mozilla Public
4+
// License, v. 2.0. If a copy of the MPL was not distributed with this
5+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
7+
package core
8+
9+
// from: github.com/google/gvisor/blob/596e8d22/pkg/tcpip/link/sniffer/pcap.go#L26
10+
type PcapHeader struct {
11+
MagicNumber uint32
12+
VersionMajor uint16
13+
VersionMinor uint16
14+
Thiszone int32
15+
Sigfigs uint32
16+
Snaplen uint32
17+
Network uint32
18+
}

0 commit comments

Comments
 (0)