diff options
| author | Michael Brown | 2007-01-31 04:43:59 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-31 04:43:59 +0100 |
| commit | 2d726144f72b34a5e36d501d2fee4d844aff0493 (patch) | |
| tree | fc3acac8997bd41ae6784344d71ad4b04ac21e7b /src/net | |
| parent | Swap downstream/upstream order so that debug messages for filters show (diff) | |
| download | ipxe-2d726144f72b34a5e36d501d2fee4d844aff0493.tar.gz ipxe-2d726144f72b34a5e36d501d2fee4d844aff0493.tar.xz ipxe-2d726144f72b34a5e36d501d2fee4d844aff0493.zip | |
Filter insertion now actually works
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/filter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/filter.c b/src/net/filter.c index c4542fcbf..925aad217 100644 --- a/src/net/filter.c +++ b/src/net/filter.c @@ -174,12 +174,16 @@ int insert_filter ( struct stream_application *app, struct filter_stream *filter ) { struct stream_connection *conn = app->conn; - if ( ! app->conn ) { + if ( ! conn ) { DBGC ( filter, "Filter %p cannot insert onto closed stream\n", filter ); return -ENOTCONN; } + DBGC ( filter, "Filter %p inserted on stream %p\n", filter, app ); + + filter->upstream.app = app; + filter->downstream.conn = conn; app->conn = &filter->upstream; conn->app = &filter->downstream; |
