--- a/syscalls/setsockopt.c.orig 2017-11-03 09:14:07.000000000 -0600 +++ b/syscalls/setsockopt.c 2017-11-18 13:44:19.283946230 -0700 @@ -90,7 +90,7 @@ static void do_random_sso(struct sockopt retry: switch (rnd() % 4) { case 0: /* do a random protocol, even if it doesn't match this socket. */ - i = rnd() % PF_MAX; + i = rnd() % TRINITY_PF_MAX; proto = net_protocols[i].proto; if (proto != NULL) { if (proto->setsockopt != NULL) {