Lines Matching defs:this
56 struct ifindex_node *this;
72 list_for_each_entry(this, &h->ifindex_hash[hash], head) {
73 if (this->index == ifi_msg->ifi_index) {
80 this = malloc(sizeof(*this));
81 if (!this)
84 this->index = ifi_msg->ifi_index;
87 this->type = ifi_msg->ifi_type;
88 this->flags = ifi_msg->ifi_flags;
91 this->alen = alen = RTA_PAYLOAD(cb[IFLA_ADDRESS]);
92 if (alen > sizeof(this->addr))
93 alen = sizeof(this->addr);
94 memcpy(this->addr, RTA_DATA(cb[IFLA_ADDRESS]), alen);
96 this->alen = 0;
97 memset(this->addr, 0, sizeof(this->addr));
99 strcpy(this->name, RTA_DATA(cb[IFLA_IFNAME]));
102 list_add(&this->head, &h->ifindex_hash[hash]);
119 struct ifindex_node *this, *tmp;
131 list_for_each_entry_safe(this, tmp, &h->ifindex_hash[hash], head) {
132 if (this->index == ifi_msg->ifi_index) {
133 list_del(&this->head);
134 free(this);
154 struct ifindex_node *this;
165 list_for_each_entry(this, &h->ifindex_hash[hash], head) {
166 if (this->index == index) {
167 strcpy(name, this->name);
188 struct ifindex_node *this;
199 list_for_each_entry(this, &h->ifindex_hash[hash], head) {
200 if (this->index == index) {
201 *flags = this->flags;
212 * Call this before any nlif_* function
264 struct ifindex_node *this, *tmp;
273 list_for_each_entry_safe(this, tmp, &h->ifindex_hash[i], head) {
274 list_del(&this->head);
275 free(this);