icmpd.h 511 B

1234567891011121314151617181920
  1. #include "unpicmpd.h"
  2. struct client {
  3. int connfd; /* Unix domain stream socket to client */
  4. int family; /* AF_INET or AF_INET6 */
  5. int lport; /* local port bound to client's UDP socket */
  6. /* network byte ordered */
  7. } client[FD_SETSIZE];
  8. /* 4globals */
  9. int fd4, fd6, listenfd, maxi, maxfd, nready;
  10. fd_set rset, allset;
  11. struct sockaddr_un cliaddr;
  12. /* 4function prototypes */
  13. int readable_conn(int);
  14. int readable_listen(void);
  15. int readable_v4(void);
  16. int readable_v6(void);