code: func linkFlags(rawFlags uint32) net.Flags {
  	var f net.Flags
  	if rawFlags&unix.IFF_UP != 0 {
  		f |= net.FlagUp
  	}
  	if rawFlags&unix.IFF_BROADCAST != 0 {
  		f |= net.FlagBroadcast
  	}
  	if rawFlags&unix.IFF_LOOPBACK != 0 {
  		f |= net.FlagLoopback
  	}
  	if rawFlags&unix.IFF_POINTOPOINT != 0 {
  		f |= net.FlagPointToPoint
  	}
  	if rawFlags&unix.IFF_MULTICAST != 0 {
  		f |= net.FlagMulticast
  	}
  	return f
  }
docs: // copied from pkg/net_linux.go