Lines Matching refs:entries
16 * - Reimplementation of chain cache to use offsets instead of entries
154 STRUCT_GET_ENTRIES *entries;
238 return (STRUCT_ENTRY *)((char *)h->entries->entrytable + offset);
246 if (ENTRY_ITERATE(h->entries->entrytable, h->entries->size,
249 (unsigned int)((char *)seek - (char *)h->entries->entrytable));
258 return (STRUCT_ENTRY *) ((void *)h->entries->entrytable+offset);
265 return (void *)e - (void *)h->entries->entrytable;
941 unsigned int offset = (char *)e - (char *)h->entries->entrytable;
946 if (iptcb_entry2offset(h,e) + e->next_offset == h->entries->size) {
1057 ENTRY_ITERATE(h->entries->entrytable, h->entries->size,
1136 memcpy((char *)repl->entries+r->offset, r->entry, r->size);
1152 head = (void *)repl->entries + c->head_offset;
1172 foot = (void *)repl->entries + c->foot_offset;
1261 error = (void *)repl->entries + repl->size - IPTCB_CHAIN_ERROR_SIZE;
1291 h->entries = malloc(sizeof(STRUCT_GET_ENTRIES) + size);
1292 if (!h->entries)
1295 strcpy(h->entries->name, tablename);
1296 h->entries->size = size;
1349 h->entries->size = h->info.size;
1353 if (getsockopt(h->sockfd, TC_IPPROTO, SO_GET_ENTRIES, h->entries,
1362 write(fd, h->entries, tmp);
1401 free(h->entries);
1421 XTABLES_VERSION, handle->entries->size);
1436 ENTRY_ITERATE(handle->entries->entrytable, handle->entries->size,
2089 /* Flushes the entries in the given chain (ie. empties chain). */