Lines Matching refs:swap
44 int swap;
56 int swap;
60 (swap = swapop(&magic, &mp->magic, sizeof(magic))) >= 0 &&
62 swapget(swap ^ int_swap, &mp->size, sizeof(mp->size)) == sizeof(Bgproute_t))
65 file->ident = swap;
92 ((Fixedstate_t*)file->data)->swap = file->ident;
129 if (state->swap)
131 swapmem(state->swap, rp, rp, (char*)&rp->path - (char*)rp);
133 swapmem(state->swap, rp->data + rp->cluster.offset, rp->data + rp->cluster.offset, rp->cluster.size * sizeof(Bgpnum_t));
134 if (state->swap & 1)
136 swapmem(state->swap & 1, (char*)&rp->path, (char*)&rp->path, (char*)&rp->bits - (char*)&rp->path);
138 swapmem(state->swap & 1, rp->data + rp->path.offset, rp->data + rp->path.offset, rp->path.size * sizeof(Bgpasn_t));
140 swapmem(state->swap & 1, rp->data + rp->community.offset, rp->data + rp->community.offset, rp->community.size * sizeof(Bgpasn_t));