Skip to content

babeld: simplify LDLIBS in MAKE_FLAGS - #1197

Open
BKPepe wants to merge 2 commits into
openwrt:openwrt-25.12from
BKPepe:babeld-simplify-ldlibs
Open

babeld: simplify LDLIBS in MAKE_FLAGS#1197
BKPepe wants to merge 2 commits into
openwrt:openwrt-25.12from
BKPepe:babeld-simplify-ldlibs

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 6, 2026

Copy link
Copy Markdown
Member

Setting LDLIBS to an empty string and appending to it on the same command line is equivalent to assigning the final value directly. No change in the resulting package.

Maintainer: @PolynomialDivision

Copilot AI lite review requested due to automatic review settings August 6, 2026 07:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

BKPepe and others added 2 commits August 11, 2026 13:07
Setting LDLIBS to an empty string and appending to it on the same
command line is equivalent to assigning the final value directly.

No change in the resulting package.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
The metric is optional in filter_policy: only ifname and type are
rejected when missing, so `ubus call babeld add_filter
'{"ifname":"eth0","type":0}'` reaches

    filter->action.add_metric = metric;

with metric never assigned, i.e. whatever was left on the stack. In
babeld an add_metric of INFINITY means "deny", so an uninitialized
read can silently turn an allow filter into a deny filter.

Initialize it to 0, which is the neutral value the filter would have
had if the caller had passed it explicitly.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@BKPepe
BKPepe force-pushed the babeld-simplify-ldlibs branch from fceb77b to e10449a Compare August 11, 2026 11:07
@openwrt openwrt Bot added the not following guidelines Pull request does not follow formatting guidelines label Aug 11, 2026
@BKPepe
BKPepe changed the base branch from master to openwrt-25.12 August 11, 2026 11:14
@openwrt openwrt Bot added the release/25.12 Pull request targets the stable release branch release/25.12 label Aug 11, 2026
@BKPepe

BKPepe commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

[allow cherry-pick]

@openwrt openwrt Bot removed the not following guidelines Pull request does not follow formatting guidelines label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/25.12 Pull request targets the stable release branch release/25.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants