Advertisement
gugus

OpenBSD relayd without_INET6 patch - new method

Apr 6th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. --- usr.sbin/relayd/check_icmp.c.orig   Fri Apr  6 14:11:58 2012
  2. +++ usr.sbin/relayd/check_icmp.c        Fri Apr  6 14:14:34 2012
  3. @@ -58,10 +58,12 @@
  4.         if (af == AF_INET6)
  5.                 proto = IPPROTO_ICMPV6;
  6.         if ((cie->s = socket(af, SOCK_RAW, proto)) < 0)
  7. -               fatal("icmp_init: socket");
  8. -       socket_set_blockmode(cie->s, BM_NONBLOCK);
  9. -       cie->env = env;
  10. -       cie->af = af;
  11. +               warn("socket");
  12. +       else {
  13. +               socket_set_blockmode(cie->s, BM_NONBLOCK);
  14. +               cie->env = env;
  15. +               cie->af = af;
  16. +       }
  17.  }
  18.  
  19.  void
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement