Hi Franks, On Wed, May 10, 2017 at 10:29:08AM +0000, Franks Andy (IT Technical Architecture Manager) wrote: > Hi all, > Is there a way to clear a stick table entry (using socat obviously) by > referring to the individual 'reference' id given at the beginning of the > entry, e.g. "0x7faef417d3ec" ? > Looking at the manual it seems the clearing function is based on key (ip in > my case) or data field - server id etc. I could use the key, but I'm not sure > this will always be individual - I may not always use "stick on src". > Maybe I'm confused :) and IP key IS the best.
It's not possible to kill by reference like this. However it would be a bad idea since the entry could be purged and reassigned while you're doing it, resulting in your operation to kill the wrong one. Killing by key remains better as it provides a form of atomicity in the operation. willy

