diff --git a/lib/client.js b/lib/client.js index ebf4c6b..c9283da 100644 --- a/lib/client.js +++ b/lib/client.js @@ -478,6 +478,12 @@ class Client extends EventEmitter { } header.apduType = baApdu.getDecodedType(buffer, offset); header.expectingReply = !!(result.funct & baEnum.NpduControlBit.EXPECTING_REPLY); + if (result.source && result.source.target) { + // SNET of the host. Integer. + header.sender.net = result.source.target.net; + // SADR of the host. Integer[]. + header.sender.adr = result.source.target.adr; + } this._handlePdu(buffer, offset, msgLength, header); }