socket.c dispatch function as per 2.6.30

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>