tcp: improve reset generation in reset node