how to deduce connect/accept history from struct sock?

From: Joey Dewille
Date: Mon May 10 2004 - 15:48:09 EST

Say a module is inserted that intercepts all socket operations and
it happened in the middle of several established connections.
Save me some time please and answer what fields in struct sock
or elsewhere can be examined to determine reliably if the current
connections had been accepted (i.e. accept call) or initiated (i.e.
from the local machine.

-- - A fast, anti-spam email service.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at