Lines Matching defs:sou
95 struct sou {
103 static void inet_makenetandmask(u_int32_t, struct sockaddr_in *, struct sou *);
105 static int inet6_makenetandmask(const struct sockaddr_in6 *, struct sou *);
107 static int getaddr(int, const char *, struct hostent **, struct sou *);
110 static int prefixlen(const char *, struct sou *);
114 static int print_getmsg(struct rt_msghdr *, int, struct sou *);
119 static int rtmsg(int, int, struct sou *);
120 static void mask_addr(struct sou *);
429 struct sou sou, *soup = &sou;
431 sou.so_dst = calloc(1, sizeof(union sockunion));
432 sou.so_gate = calloc(1, sizeof(union sockunion));
433 sou.so_mask = calloc(1, sizeof(union sockunion));
434 sou.so_genmask = calloc(1, sizeof(union sockunion));
435 sou.so_ifa = calloc(1, sizeof(union sockunion));
436 sou.so_ifp = calloc(1, sizeof(union sockunion));
437 sou.so_mpls = calloc(1, sizeof(union sockunion));
439 if (sou.so_dst == NULL || sou.so_gate == NULL || sou.so_mask == NULL ||
440 sou.so_genmask == NULL || sou.so_ifa == NULL || sou.so_ifp == NULL ||
441 sou.so_mpls == NULL)
675 free(sou.so_dst);
676 free(sou.so_gate);
677 free(sou.so_mask);
678 free(sou.so_genmask);
679 sou.so_ifa);
680 free(sou.so_ifp);
681 free(sou.so_mpls);
688 struct sou *soup)
752 inet6_makenetandmask(const struct sockaddr_in6 * const sin6, struct sou *soup)
783 getaddr(int which, const char *s, struct hostent **hpp, struct sou *soup)
1030 prefixlen(const char *s, struct sou *soup)
1170 rtmsg(int cmd, int flags, struct sou *soup)
1258 mask_addr(struct sou *soup)
1501 print_getmsg(struct rt_msghdr *rtm, int msglen, struct sou *soup)