Permalink
Browse files

Make sure to record the actual ip object used to write the output buf…

…fer.
  • Loading branch information...
1 parent 130c1b3 commit 3c9bb03aa7245495e7c4fc1be6aee0d5790324e7 @wanderview committed Mar 3, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 stream.js
View
@@ -97,7 +97,10 @@ IpStream.prototype._reduce = function(msg, output, callback) {
IpStream.prototype._expand = function(ip, msg, output, callback) {
// TODO: fragment jumbo packets into multiple messages
+ // TODO: provide way to override dataLength on msg, but get IP addresses
+ // from default IP object?
ip.toBuffer(msg.data, msg.offset);
+ msg.ip = ip;
msg.offset += ip.length;
return msg;
};

0 comments on commit 3c9bb03

Please sign in to comment.