stack.go 301 B

1234567891011121314151617
  1. package tun
  2. import (
  3. "time"
  4. )
  5. // Stack interface implement ip protocol stack, bridging raw network packets and data streams
  6. type Stack interface {
  7. Start() error
  8. Close() error
  9. }
  10. // StackOptions for the stack implementation
  11. type StackOptions struct {
  12. Tun Tun
  13. IdleTimeout time.Duration
  14. }