version 1.1.2.8, 2013/06/25 08:53:22
|
version 1.1.2.9, 2013/06/25 08:55:02
|
Line 226 nextZCbuf(void ** __restrict zcache, struct bpf_zbuf *
|
Line 226 nextZCbuf(void ** __restrict zcache, struct bpf_zbuf *
|
if (buf) |
if (buf) |
buf = ((caddr_t) *zcache) + sizeof(struct bpf_zbuf_header); |
buf = ((caddr_t) *zcache) + sizeof(struct bpf_zbuf_header); |
ackZCbuf(bzh); |
ackZCbuf(bzh); |
} | } else |
| io_SetErr(EAGAIN, "kernel owns the buffer"); |
} else if (*zcache == zbuf->bz_bufa) { |
} else if (*zcache == zbuf->bz_bufa) { |
bzh = (struct bpf_zbuf_header *) zbuf->bz_bufb; |
bzh = (struct bpf_zbuf_header *) zbuf->bz_bufb; |
if (chkZCbuf(bzh)) { |
if (chkZCbuf(bzh)) { |
Line 235 nextZCbuf(void ** __restrict zcache, struct bpf_zbuf *
|
Line 236 nextZCbuf(void ** __restrict zcache, struct bpf_zbuf *
|
if (buf) |
if (buf) |
buf = ((caddr_t) *zcache) + sizeof(struct bpf_zbuf_header); |
buf = ((caddr_t) *zcache) + sizeof(struct bpf_zbuf_header); |
ackZCbuf(bzh); |
ackZCbuf(bzh); |
} | } else |
| io_SetErr(EAGAIN, "kernel owns the buffer"); |
} |
} |
|
|
return rlen; |
return rlen; |