The change did not compile, something about a LVALUE needed. BUT, I think
you are on the right track. See below from ar_pf3 manual:
In that case, you probably need something more complex than adding an &.
Maybe something like this:
int family = AF_INET;
int type = SOCK_STREAM;
int zero = 0;
sock = socket (&family, &type, &zero);
Regards,
Peter Coghlan.