MCPcopy
hub / github.com/monasticacademy/httptap / udpStackResponder

Struct udpStackResponder

udp.go:104–108  ·  view source on GitHub ↗

udpStackResponder writes UDP packets back to a known sender

Source from the content-addressed store, hash-verified

102
103// udpStackResponder writes UDP packets back to a known sender
104type udpStackResponder struct {
105 stack *udpStack
106 udpheader *layers.UDP
107 ipv4header *layers.IPv4
108}
109
110func (r *udpStackResponder) SetSourceIP(ip net.IP) {
111 r.ipv4header.SrcIP = ip

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected