Lines Matching refs:entries
16 * - Reimplementation of chain cache to use offsets instead of entries
136 STRUCT_GET_ENTRIES *entries;
215 return (STRUCT_ENTRY *)((char *)h->entries->entrytable + offset);
223 if (ENTRY_ITERATE(h->entries->entrytable, h->entries->size,
226 (unsigned int)((char *)seek - (char *)h->entries->entrytable));
235 return (STRUCT_ENTRY *) ((void *)h->entries->entrytable+offset);
242 return (void *)e - (void *)h->entries->entrytable;
435 unsigned int offset = (char *)e - (char *)h->entries->entrytable;
440 if (iptcb_entry2offset(h,e) + e->next_offset == h->entries->size) {
545 ENTRY_ITERATE(h->entries->entrytable, h->entries->size,
620 memcpy((char *)repl->entries+r->offset, r->entry, r->size);
636 head = (void *)repl->entries + c->head_offset;
656 foot = (void *)repl->entries + c->foot_offset;
745 error = (void *)repl->entries + repl->size - IPTCB_CHAIN_ERROR_SIZE;
778 h->entries = malloc(sizeof(STRUCT_GET_ENTRIES) + size);
779 if (!h->entries)
782 strcpy(h->entries->name, tablename);
783 h->entries->size = size;
842 h->entries->size = h->info.size;
846 if (getsockopt(sockfd, TC_IPPROTO, SO_GET_ENTRIES, h->entries,
855 write(fd, h->entries, tmp);
896 free((*h)->entries);
1600 /* Flushes the entries in the given chain (ie. empties chain). */