Bohdan Ivashko
Bohdan Ivashko
Fixes #71
Use separate stacks for files and directories and limit the size of file stack to significantly reduce memory usage. This also noticeably speeds up execution in contexts where you have...
It would be both useful for monitoring and for external management of db1000n (see https://github.com/arriven/db1000n/issues/549#issuecomment-1154939869). Ideally we'd also want all of this info to be available as http endpoint
--interface option uses syscall.BindToDevice which is only available for linux. It should be possible to use net.InterfaceByName inside conn.Control to get an addr that could then be transformed into sockaddr...
List of higher priority protocols to include (can be extended): - [x] [HTTP](https://github.com/Arriven/db1000n/blob/8563935e67802cfeb46d04c9776f8ba68a725770/src/core/http/http.go#L66) - [ ] [TLS](https://pkg.go.dev/github.com/google/gopacket/layers#TLS) - [ ] [DHCPv4](https://pkg.go.dev/github.com/google/gopacket/layers#DHCPv4) and [DHCPv6](https://pkg.go.dev/github.com/google/gopacket/layers#DHCPv6) - [ ] [SIP](https://pkg.go.dev/github.com/google/gopacket/layers#SIP)
Things to consider: - hash functions (sha, md5) - type conversions (string to byte slice and vice versa) - random bearer token generation
Packetgen can be further improved in following ways: - [x] #470 - [ ] #471