}
socket_orig = dlsym(handle, "socket");
if (!socket_orig) {
- fprintf(stderr,"Error loading socket symbol");
+ fprintf(stderr,"Error loading socket symbol\n");
return -1;
}
- fprintf(stderr,"Socket call: %x",socket_orig);
}
if (f == PF_PACKET) {
struct sockaddr_un addr;
int remotefd;
+ printf("[packetseer] Rerouting socket call via vsys...\n");
sfd = socket(AF_UNIX, SOCK_STREAM, 0);
if (sfd == -1) {
perror("Could not create UNIX socket\n");
}
remotefd = receive_fd(sfd);
+ printf("Received fd %d",remotefd);
return remotefd;
}
else