func getIPHeaderLayerV4()

in internal/ip/ip_linux.go [46:55]


func getIPHeaderLayerV4(tos DSCPValue, tcpLen uint16, srcIP net.IP, dstIP net.IP) *layers.IPv4 {
	return &layers.IPv4{
		Version:  4, // IP Version 4
		TOS:      uint8(tos),
		Protocol: layers.IPProtocolTCP,
		TTL:      defines.IPTTL,
		SrcIP:    srcIP,
		DstIP:    dstIP,
	}
}