-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nlbwmon cannot work immediately after booting on OpenWrt 23.05.3 #59
Comments
I have the same issue and I find that allow_insert is always false, keeping the database empty. |
I couldn't find any nlbwmo related repositories on your homepage. Can you share the ones you have modified?Thank you |
I use a patch file and it may not be the best solution. Index: nlbwmon-2024-02-21-c7616bcf/nfnetlink.c
===================================================================
--- nlbwmon-2024-02-21-c7616bcf.orig/nfnetlink.c
+++ nlbwmon-2024-02-21-c7616bcf/nfnetlink.c
@@ -78,10 +78,9 @@ struct delayed_record {
static void
database_insert_immediately(struct record *r)
{
- if (r->count != 0)
- database_insert(gdbh, r);
- else
- database_update(gdbh, r);
+ int err = 0;
+ err = database_insert(gdbh, r);
+ if (err < 0) fprintf(stderr, "failed to insert, count %lld, err %d\n", r->count, err);
}
static void |
Thank you for your contribution |
|
No connection count either. It seems that any new connection is not captured in my system, thus no count and insert into database. |
Nlbwmon cannot work immediately after booting on Immortalwrt 23.05.3

When OpenWRT is set to the 1st of the following month, nlbwmon will start working immediately, but it will cease to function after a restart.Can you please advise on how to solve this problem
The text was updated successfully, but these errors were encountered: