summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2008-03-11 21:58:48 +0000
committermav <mav@FreeBSD.org>2008-03-11 21:58:48 +0000
commitdd8463bf8829b5952ae30689231e7d4060d170f6 (patch)
tree8a8b6cd557e9a8f70a8992596adaaf8fa83292a5 /sys/netgraph/netgraph.h
parent384b4a0305cc04c8c51a266299a985170a7901cf (diff)
downloadFreeBSD-src-dd8463bf8829b5952ae30689231e7d4060d170f6.zip
FreeBSD-src-dd8463bf8829b5952ae30689231e7d4060d170f6.tar.gz
Improve apply callback error reporting:
Before this patch callback returned result of the last finished call chain. Now it returns last nonzero result from all call chain results in this request. As soon as this improvement gives reliable error reporting, it is now possible to remove dirty workaround in ng_socket, made to return ENOBUFS error statuses of request-response operations. That workaround was responsible for returning ENOBUFS errors to completely unrelated requests working at the same time on socket.
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 69559ce..e0b53d1 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -608,6 +608,7 @@ struct ng_apply_info {
ng_apply_t *apply;
void *context;
int refs;
+ int error;
};
struct ng_item {
u_long el_flags;
@@ -634,7 +635,7 @@ struct ng_item {
* and its context.
*/
struct ng_apply_info *apply;
- void *PAD1;
+ uintptr_t depth;
#ifdef NETGRAPH_DEBUG /*----------------------------------------------*/
char *lastfile;
int lastline;
OpenPOWER on IntegriCloud