daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void *get_in_addr(struct sockaddr *sa) {
  2.   if(sa->sa_family == AF_INET)  return &(((struct sockaddr_in*)sa)->sin_addr);
  3.   return &(((struct sockaddr_in6*)sa)->sin6_addr);
  4. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top