Covad agrees to$304 million buyout