Ex-Hampton cop gets six years in case of revealing undercove