Lines Matching refs:lim
164 get_next_msg(char *buf, char *lim, int ifindex, size_t *lenp, int filter)
172 rtm < (struct rt_msghdr *)lim;
177 "(buf=%p lim=%p rtm=%p)", __func__,
178 buf, lim, rtm);
184 "(buf=%p lim=%p rtm=%p)", __func__,
185 buf, lim, rtm);
286 char *p, *lim;
293 lim = (char *)sa + sa->sa_len;
294 return prefixlen(p, lim);
298 prefixlen(unsigned char *p, unsigned char *lim)
302 for (masklen = 0; p < lim; p++) {
419 char *lim;
459 lim = msg + len;
461 ifm != NULL && ifm < (struct if_msghdr *)lim;
462 ifm = get_next_msghdr(ifm,(struct if_msghdr *)lim)) {
465 syslog(LOG_DEBUG, "<%s> ifm = %p, lim = %p, diff = %zu",
466 __func__, ifm, lim, (char *)lim - (char *)ifm);
617 get_next_msghdr(struct if_msghdr *ifm, struct if_msghdr *lim)
622 ifam < (struct ifa_msghdr *)lim;