send discovery packet only when necessary