Lines Matching defs: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) {
1056 ENTRY_ITERATE(h->entries->entrytable, h->entries->size,
1135 memcpy((char *)repl->entries+r->offset, r->entry, r->size);
1151 head = (void *)repl->entries + c->head_offset;
1171 foot = (void *)repl->entries + c->foot_offset;
1260 error = (void *)repl->entries + repl->size - IPTCB_CHAIN_ERROR_SIZE;
1290 h->entries = malloc(sizeof(STRUCT_GET_ENTRIES) + size);
1291 if (!h->entries)
1294 strcpy(h->entries->name, tablename);
1295 h->entries->size = size;
1348 h->entries->size = h->info.size;
1352 if (getsockopt(h->sockfd, TC_IPPROTO, SO_GET_ENTRIES, h->entries,
1361 write(fd, h->entries, tmp);
1400 free(h->entries);
1420 XTABLES_VERSION, handle->entries->size);
1435 ENTRY_ITERATE(handle->entries->entrytable, handle->entries->size,
2088 /* Flushes the entries in the given chain (ie. empties chain). */