Home | History | Annotate | Download | only in lib

Lines Matching defs:im

52 	struct ll_cache *im, **imp;
67 for (imp = &idx_head[h]; (im=*imp)!=NULL; imp = &im->idx_next)
68 if (im->index == ifi->ifi_index)
71 if (im == NULL) {
72 im = malloc(sizeof(*im));
73 if (im == NULL)
75 im->idx_next = *imp;
76 im->index = ifi->ifi_index;
77 *imp = im;
80 im->type = ifi->ifi_type;
81 im->flags = ifi->ifi_flags;
84 im->alen = alen = RTA_PAYLOAD(tb[IFLA_ADDRESS]);
85 if (alen > sizeof(im->addr))
86 alen = sizeof(im->addr);
87 memcpy(im->addr, RTA_DATA(tb[IFLA_ADDRESS]), alen);
89 im->alen = 0;
90 memset(im->addr, 0, sizeof(im->addr));
92 strcpy(im->name, RTA_DATA(tb[IFLA_IFNAME]));
98 const struct ll_cache *im;
103 for (im = idxhead(idx); im; im = im->idx_next)
104 if (im->index == idx)
105 return im->name;
121 const struct ll_cache *im;
125 for (im = idxhead(idx); im; im = im->idx_next)
126 if (im->index == idx)
127 return im->type;
133 const struct ll_cache *im;
138 for (im = idxhead(idx); im; im = im->idx_next)
139 if (im->index == idx)
140 return im->flags;
147 const struct ll_cache *im;
152 for (im = idxhead(idx); im; im = im->idx_next) {
153 if (im->index == idx) {
154 if (alen > sizeof(im->addr))
155 alen = sizeof(im->addr);
156 if (alen > im->alen)
157 alen = im->alen;
158 memcpy(addr, im->addr, alen);
169 struct ll_cache *im;
180 for (im = idx_head[i]; im; im = im->idx_next) {
181 if (strcmp(im->name, name) == 0) {
182 icache = im->index;
184 return im->index;