added spoof_diff_calc.c