[PATCH openEuler-5.10 056/113] ping: fix the dif and sdif check in ping_lookup