#if HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
return index;
recursive = 1;
+printf("skipping rsocket call\n");
goto realsock;
ret = rsocket(domain, type, protocol);
recursive = 0;
uint32_t msg;
long flags;
+ printf("fork_active\n");
sfd = fd_getd(socket);
flags = real.fcntl(sfd, F_GETFL);
if (ret)
goto err1;
+ printf("fork_active - create rsocket\n");
dfd = rsocket(addr.ss_family, SOCK_STREAM, 0);
if (dfd < 0)
goto err1;
+ printf("fork_active - rconnect\n");
ret = rconnect(dfd, (struct sockaddr *) &addr, len);
if (ret)
goto err2;
socklen_t len;
uint32_t msg;
+ printf("fork_passive\n");
sfd = fd_getd(socket);
len = sizeof sin6;
ret = -1;
goto out;
}
+ printf("fork_passive - create rsocket\n");
lfd = rsocket(sin6.sin6_family, SOCK_STREAM, 0);
if (lfd < 0) {
len = real.write(sfd, &msg, sizeof msg);
if (len != sizeof msg)
goto lclose;
+ printf("fork_passive - raccept\n");
dfd = raccept(lfd, NULL, NULL);
if (dfd < 0) {