Re: [go-nuts] Re: Tcp connection reset

2018-04-17 Thread Binu Paul
Hi, package main import ( "fmt" "time" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" "reflect" "net" "log" ) //var started_at time.Time //var rest_root_requests int64 = 0 func main()

[go-nuts] Re: Tcp connection reset

2018-04-13 Thread Juliusz Chroboczek
> i need to reset the tcp connection manually , if one request come from > ipLayer.SrcIP > = 10.2.3.1 then i need to sent the reset connection packet I could be wrong, but I don't think the sockets API makes this possible -- RST segments are normally only sent by the kernel upon receiving a segmen