diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-05-23 16:23:32 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-06-24 16:18:15 -0400 |
commit | 7dd1bf28ccc44ef205c64aab618863faa914daa9 (patch) | |
tree | ca0ab7b87fdc428a53de1d8faa183f07b75a1be4 /net/netlabel/netlabel_kapi.c | |
parent | 017dac31dc8a25ad45421715d88c3869e299fd35 (diff) | |
download | blackbird-op-linux-7dd1bf28ccc44ef205c64aab618863faa914daa9.tar.gz blackbird-op-linux-7dd1bf28ccc44ef205c64aab618863faa914daa9.zip |
tipc: Optimizations & corrections to message rejection
Optimizes the creation of a returned payload message by duplicating
the original message and then updating the small number of fields
that need to be adjusted, rather than building the new message header
from scratch. In addition, certain operations that are not always
required are relocated so that they are only done if needed.
These optimizations also have the effect of addressing other issues
that were present previously:
1) Fixes a bug that caused the socket send routines to return the
size of the returned message, rather than the size of the sent
message, when a returnable payload message was sent to a non-existent
destination port.
2) The message header of the returned message now matches that of
the original message more closely. The header is now always the same
size as the original header, and some message header fields that
weren't being initialized in the returned message header are now
populated correctly -- namely the "d" and "s" bits, and the upper
bound of a multicast name instance (where present).
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/netlabel/netlabel_kapi.c')
0 files changed, 0 insertions, 0 deletions