()
| 44 | return nil |
| 45 | } |
| 46 | func (b *fakeBackend) captured() [][]byte { |
| 47 | b.mu.Lock() |
| 48 | defer b.mu.Unlock() |
| 49 | out := make([][]byte, len(b.injected)) |
| 50 | copy(out, b.injected) |
| 51 | return out |
| 52 | } |
| 53 | |
| 54 | // pktOpts builds a raw IPv4+TCP packet with caller-chosen fields for scripting. |
| 55 | type pktOpts struct { |
no outgoing calls
no test coverage detected