Skip to content

Commit b1d3108

Browse files
committed
panko: capture: Added stubs for pcap/pcapng abstraction
1 parent c4c2029 commit b1d3108

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed

src/panko/capture/file.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/* file.hh - Panko capture file internal representation */
3+
4+
#include "panko/capture/file.hh"
5+
6+
namespace Panko::capture {
7+
8+
}

src/panko/capture/file.hh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/* file.hh - Panko capture file internal representation */
3+
4+
#pragma once
5+
#if !defined(PANKO_CAPTURE_FILE_HH)
6+
#define PANKO_CAPTURE_FILE_HH
7+
8+
namespace Panko::capture {
9+
10+
}
11+
12+
#endif /* PANKO_CAPTURE_FILE_HH */

src/panko/capture/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22

33
libpanko_capture_headers = files([
4+
'file.hh',
45
'linktype.hh',
6+
'packet.hh',
57
'pcap.hh',
68
'pcapng.hh',
79
])
810

911
libpanko_srcs += files([
12+
'file.cc',
1013
'linktype.cc',
14+
'packet.cc',
1115
'pcap.cc',
1216
'pcapng.cc',
1317
])

src/panko/capture/packet.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/* packet.hh - Panko capture packet */
3+
4+
#include "panko/capture/packet.hh"
5+
6+
namespace Panko::capture {
7+
8+
}

src/panko/capture/packet.hh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/* packet.hh - Panko capture packet */
3+
4+
#pragma once
5+
#if !defined(PANKO_CAPTURE_PACKET_HH)
6+
#define PANKO_CAPTURE_PACKET_HH
7+
8+
namespace Panko::capture {
9+
10+
}
11+
12+
#endif /* PANKO_CAPTURE_PACKET_HH */

0 commit comments

Comments
 (0)