Distinguish client notifications from runtime hooks
This commit is contained in:
1 parent
87aab9aec6
commit
f73fa12cd0
1 file changed
+14
-7
@@ -142,8 +142,14 @@ are queued; `setAutoStore(true)` calls `flushConfig`, which writes or removes
|
||||
the queued objects. This distinction matters for a native instance editor:
|
||||
runtime changes should follow a committed object, rather than a parsed draft.
|
||||
`AMap::cmdAddObj` and `cmdSetObj` call `notifyChange` after a successful
|
||||
store/update path. Whether a particular derived handler uses that notification
|
||||
to regenerate daemon configuration still needs verification.
|
||||
store/update path. Decompiling `nv::Handler::notifyChange` in `libumsg.so`
|
||||
at mapped addresses `0x43b38` and `0x45fe4` shows it collecting changed
|
||||
object IDs and optional message data for registered subscribers, then
|
||||
requesting or scheduling a notification flush. This is the client refresh
|
||||
mechanism; it is **not** itself a service reload callback. The `AMap`
|
||||
add/set/remove paths also call derived-class virtual methods after a
|
||||
successful update. Those are the candidate runtime hooks to investigate for
|
||||
OLSRd regeneration, and their signatures and ordering still need proof.
|
||||
|
||||
The Netwatch startup function at `0x1c278` allocates an `AMap`, registers a
|
||||
handler with `nv::Looper::addHandler`, and later runs the looper. It also
|
||||
@@ -163,10 +169,11 @@ not copy this second loop without understanding it.
|
||||
```
|
||||
|
||||
This explains the required lifecycle for an OLSR instance: save validated
|
||||
fields through its own registered handler, restore them at boot, and have the
|
||||
handler's change callback regenerate the running daemon configuration. It
|
||||
does not justify writing directly to `/rw/store` or treating a scheduler row
|
||||
as an OLSR object.
|
||||
fields through its own registered handler, restore them at boot, and use a
|
||||
derived handler's successful-change hook to regenerate the running daemon
|
||||
configuration. `notifyChange` separately keeps subscribed UI/API clients
|
||||
current. None of this justifies writing directly to `/rw/store` or treating a
|
||||
scheduler row as an OLSR object.
|
||||
|
||||
We also decompiled the matching 7.25.1 ARM `libumsg.so` at ELF symbol addresses
|
||||
`0x5ec74` (`nv::RosCfg::eachHandler`), `0x5ed28`
|
||||
@@ -189,7 +196,7 @@ mkdir -p /tmp/ghidra-olsr
|
||||
-import build/platform-roots-7.25.1/arm/lib/libumsg.so \
|
||||
-scriptPath research/ghidra \
|
||||
-postScript DumpFunction.java 0x6ec74 0x6ed28 0x6e3f8 0x6e5a0 \
|
||||
0x50048 0x502f8 0x50624 -deleteProject
|
||||
0x50048 0x502f8 0x50624 0x43b38 0x45fe4 -deleteProject
|
||||
```
|
||||
|
||||
A native OLSR implementation therefore needs a registered process/handler,
|
||||
|
||||
Reference in new issue
Block a user