in reply to Re^3: Win32 TCP SYN messages
in thread Win32 TCP SYN messages

Then the comment applies to the OP too.
$helpDec = sprintf("%d", $ip->{'tos'});
should be one of:
$helpDec = $ip->{'tos'};
$helpDec = 0+$ip->{'tos'};     # Convert string to number
$helpDec = int($ip->{'tos'});  # Convert string or number to integer