-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP: initial commit for Pcap dumpers
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...etdumper/src/main/kotlin/com/jasonernst/packetdumper/filedumper/PcapNgFilePacketDumper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...r/src/main/kotlin/com/jasonernst/packetdumper/serverdumper/PcapNgTcpServerPacketDumper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
} |