新TAP测试(TODO 解析arp)

This commit is contained in:
黄思敏 2022-09-01 16:28:30 +08:00
parent 803f62c634
commit 75e03ae883
2 changed files with 6 additions and 6 deletions

View File

@ -209,11 +209,11 @@ func (nt *NetTunnel) SendFrames(stream gen.FrameService_SendFramesServer) error
log.Panic(err)
}
buf, err := Decompress(request.GetFrames())
if err != nil {
log.Panic(err)
}
nt.writer <- buf
// buf, err := Decompress(request.GetFrames())
// if err != nil {
// log.Panic(err)
// }
nt.writer <- request.GetFrames()
// frames := Decompress(request.GetFrames())
// if len(frames) > 0 {

View File

@ -132,7 +132,7 @@ func (cli *RPCClient) run() {
// 发到对面的网卡
err = stream.Send(&gen.RequestFrames{
Frames: Compress(buf),
Frames: buf,
})
if err != nil {
log.Panic(err)