Skip to content

Commit

Permalink
WiP: initial commit for Pcap dumpers
Browse files Browse the repository at this point in the history
  • Loading branch information
compscidr committed Aug 8, 2024
1 parent 7298378 commit 83ef7d7
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.jasonernst.packetdumper.filedumper

import com.jasonernst.packetdumper.EtherType
import java.nio.ByteBuffer

class PcapNgFilePacketDumper(override var filename: String) : AbstractFilePacketDumper() {
override fun open() {
TODO("Not yet implemented")
}

override fun close() {
TODO("Not yet implemented")
}

override fun dumpBuffer(
buffer: ByteBuffer,
offset: Int,
length: Int,
addresses: Boolean,
etherType: EtherType?,
) {
TODO("Not yet implemented")
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.jasonernst.packetdumper.serverdumper

import com.jasonernst.packetdumper.EtherType
import java.nio.ByteBuffer

class PcapNgTcpServerPacketDumper(val listenPort: Int = DEFAULT_PORT) : AbstractServerPacketDumper() {
companion object {
const val DEFAULT_PORT = 19000
}

override fun start() {
TODO("Not yet implemented")
}

override fun stop() {
TODO("Not yet implemented")
}

override fun dumpBuffer(
buffer: ByteBuffer,
offset: Int,
length: Int,
addresses: Boolean,
etherType: EtherType?,
) {
TODO("Not yet implemented")
}
}

0 comments on commit 83ef7d7

Please sign in to comment.