func NewIPv4HeaderTpl(proto int) IPv4 {
	return IPv4{
		Version:  4,
		IHL:      5,
		TOS:      0,
		TTL:      64,
		Protocol: uint8(proto),
	}
}
NewIPv4HeaderTpl constructs IPv4 header template
package mirror
import (
	"encoding/binary"
	"net"
)
type IPv4 struct {
	Version  uint8
	IHL      uint8
	TOS      uint8
	Length   uint16
	TTL      uint8
	Protocol uint8
}