feat: state the device's own address in origin.ip - #12
Merged
Conversation
Contributor
Author
|
@coderabbitai pause |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note Reviews pausedUse the following commands to manage reviews:
Use the checkboxes below for quick actions:
Comment |
✅ Action performedReviews paused. |
DavidCozens
force-pushed
the
stage-11-origin
branch
from
August 16, 2026 21:50
20f631b to
5b7204c
Compare
The ip PARAM, sourced from the same interface address HOSTNAME reports. A relay or NAT between device and collector rewrites what the collector observes; ip is what the device says about itself, which survives the hop. Flash +12,396 B (+408 on the previous stage) RAM +9,168 B (unchanged) Log stack +680 B (+8) Service +960 B (unchanged) ip is repeatable, so the library asks for a count and then one value per index rather than taking a string. This device has one address and returns one, and none before the interface has an address — a count of zero omits the PARAM rather than emitting an empty one. SyslogFields_IpAddress is now the single place that reads the address, and HOSTNAME formats the same string through it, so two fields that must agree cannot disagree. Four elements put the record at 260 octets. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
DavidCozens
force-pushed
the
stage-12-origin-ip
branch
from
August 16, 2026 21:50
e36f817 to
a9e904b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
ipPARAM to the origin element, sourced from the same interface address the HOSTNAME fieldreports.
A relay or NAT between the device and the collector rewrites the address the collector observes.
ipis what the device says about itself, and that survives the hop.The PARAM is repeatable, so the library asks for a count and then one value per index rather than
taking a single string. This device has one address and returns one, and returns none before the
interface has an address — a count of zero omits the PARAM rather than emitting an empty one.
SyslogFields_IpAddressbecomes the single place that reads the address, and HOSTNAME formats thesame string through it. Two fields that must agree now cannot disagree.
When you need it. If anything sits between the device and the collector — a relay, a gateway, or
NAT — and the source address the collector sees can no longer be trusted to identify the device.