Lines Matching refs:lifs
2840 struct lifsrcof lifs; in ifstatus() local
2896 lifs.lifs_ifindex = lifr.lifr_index; in ifstatus()
2902 lifs.lifs_buf = NULL; in ifstatus()
2903 lifs.lifs_maxlen = 0; in ifstatus()
2906 rval = ioctl(s, SIOCGLIFSRCOF, (char *)&lifs); in ifstatus()
2908 if (lifs.lifs_buf != NULL) { in ifstatus()
2909 free(lifs.lifs_buf); in ifstatus()
2910 lifs.lifs_buf = NULL; in ifstatus()
2912 lifs.lifs_len = 0; in ifstatus()
2915 if (lifs.lifs_len <= lifs.lifs_maxlen) in ifstatus()
2918 lifs.lifs_maxlen = lifs.lifs_len + in ifstatus()
2921 newbuf = realloc(lifs.lifs_buf, lifs.lifs_maxlen); in ifstatus()
2923 if (lifs.lifs_buf != NULL) { in ifstatus()
2924 free(lifs.lifs_buf); in ifstatus()
2925 lifs.lifs_buf = NULL; in ifstatus()
2927 lifs.lifs_len = 0; in ifstatus()
2930 lifs.lifs_buf = newbuf; in ifstatus()
2934 numifs = lifs.lifs_len / sizeof (struct lifreq); in ifstatus()
2936 lifrp = lifs.lifs_req; in ifstatus()
2943 if (lifs.lifs_buf != NULL) in ifstatus()
2944 free(lifs.lifs_buf); in ifstatus()