Hi all,
I am currently working on a test script for handling
RST from synchronised (
established) state in a FreeBSD VM. What I am trying to do is verify whether we transit to
CLOSED state after receiving a
RST from the other side. Currently I am checking this using the following command -
`sockstat -s -P tcp -p 8080 | grep 'packetdril' | awk '{print $8}' | grep 'CLOSED'`
However, this simply prints CLOSED during the runtime or aborts in case of any discrepancy. I was wondering that is it possible for us to have some sort of assertion like logic where we can directly compare the output of a specific command with the expected result during the runtime. I am not aware of a method to do so in packetdrill.
Any help will be appreciated.
Thank you.
Regards,
Shivansh