>
> This worked:
>
func main() {
ipv4Addr := &net.UDPAddr{IP: net.IPv4(224, 0, 31, 1), Port: 14310}
conn, err := net.ListenUDP("udp4", ipv4Addr)
if err != nil {
fmt.Printf("ListenUDP error %v\n", err)
return
}
pc := ipv4.NewPacketConn(conn)
iface, err := n
It appears nothing is wrong with my code... it's just red hat firewalld
that is blocking ospf...
On Thursday, 8 June 2017 13:37:27 UTC+1, brylant wrote:
>
> Hi,
>
> I'm trying to capture OSPF hello packets like this:
>
> ens192, err := net.InterfaceByName("ens192")
> if err != nil