Ticket #41123

Counter ruleset network packet

Eröffnet am: 2021-01-08 16:08 Letztes Update: 2022-09-14 11:42

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
4

Details

Introduce a new network packet containing ruleset information about one counter. Send these packets to client when rulesets have been loaded.

Ticket-Verlauf (3/21 Historien)

2021-01-08 16:08 Aktualisiert von: cazfi
  • New Ticket "Counter ruleset network packet" created
2021-11-08 14:04 Aktualisiert von: cazfi
  • Details Updated
2022-08-19 21:33 Aktualisiert von: lachu
Kommentar

@cazfi: Can you look on my patch?

(Edited, 2022-08-19 21:34 Aktualisiert von: lachu)
2022-08-19 22:19 Aktualisiert von: cazfi
Kommentar

Reply To lachu

@cazfi: Can you look on my patch?

Yea, I try to get closer to winter time work habits during this weekend, if not yet to full steam.

2022-08-21 14:28 Aktualisiert von: cazfi
Kommentar

- Just handle the packet in packhand.c like all the others, no point in creating new module for a single packet (there would be a point to split packhand.c a bit, but then we should do it for some bigger group)
- I don't see you adding 'num_counters' to ruleset_control, though you try to validate it on packet receive
- Function headers missing for the new functions

2022-08-21 14:30 Aktualisiert von: cazfi
Kommentar

Reply To cazfi

- I don't see you adding 'num_counters' to ruleset_control, though you try to validate it on packet receive

Sorry, I forgot the ticket reordering. So this will come in a a dependency ticket #41122

2022-09-06 06:18 Aktualisiert von: cazfi
Kommentar

Reply To cazfi

- Just handle the packet in packhand.c like all the others, no point in creating new module for a single packet (there would be a point to split packhand.c a bit, but then we should do it for some bigger group)

...

- Function headers missing for the new functions

Any progress with this?

2022-09-07 21:56 Aktualisiert von: lachu
Kommentar

Reply To cazfi

Reply To cazfi

- Just handle the packet in packhand.c like all the others, no point in creating new module for a single packet (there would be a point to split packhand.c a bit, but then we should do it for some bigger group)

...

- Function headers missing for the new functions

Any progress with this?

0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch(8KB)
Apply this

Aughhh..... Sory.. I miss some of your comment. I must address three problems yet.

(Edited, 2022-09-07 21:57 Aktualisiert von: lachu)
2022-09-08 01:02 Aktualisiert von: lachu
Kommentar

Reply To cazfi

- Just handle the packet in packhand.c like all the others, no point in creating new module for a single packet (there would be a point to split packhand.c a bit, but then we should do it for some bigger group)

Done. I will publish patch later.

- I don't see you adding 'num_counters' to ruleset_control, though you try to validate it on packet receive

I added it into: PACKET_RULESET_CONTROL = 155; sc, lsend

- Function headers missing for the new functions

I must check, what do you mean. There is client_counter.h file. I known, it should be called client_counters.h

2022-09-08 01:16 Aktualisiert von: lachu
Kommentar

2022-09-08 01:14 Updated by: lachu File 0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10270) is attached

Moved client-related function around counter and network handling into packhand.c

2022-09-08 01:20 Aktualisiert von: lachu
Kommentar

Reply To [comment:12505:41123:63885

- I don't see you adding 'num_counters' to ruleset_control, though you try to validate it on packet receive[[

Ok. I added num_counters to control packet in other patch: 5d85fc89fdaaead8ad7bb3f6835d206bc3fd3208 . What do now?

2022-09-08 01:38 Aktualisiert von: cazfi
Kommentar

Reply To lachu

2022-09-08 01:14 Updated by: lachu File 0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10270) is attached

Moved client-related function around counter and network handling into packhand.c

- client/Makefile.am still refers to those removed source files, causing build to fail in lack of them
- Space before ";" in "packet.checkpoint = pcount->checkpoint ;"
- For counter_target and counter_behavior enum definitions in fc_types.h, now part of network protocol, add the standard "/* Used in the network protocol. */" -comment

2022-09-08 23:45 Aktualisiert von: lachu
  • File 0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10272) is attached
2022-09-08 23:45 Aktualisiert von: lachu
  • File 0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10272) is deleted
2022-09-08 23:45 Aktualisiert von: lachu
Kommentar

Reply To cazfi

Reply To lachu

2022-09-08 01:14 Updated by: lachu File 0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10270) is attached

Moved client-related function around counter and network handling into packhand.c

- client/Makefile.am still refers to those removed source files, causing build to fail in lack of them
- Space before ";" in "packet.checkpoint = pcount->checkpoint ;"
- For counter_target and counter_behavior enum definitions in fc_types.h, now part of network protocol, add the standard "/* Used in the network protocol. */" -comment

Done.

0001-OSND-41123-S-awomir-Lach-slawek-lach.art.pl.patch(6KB)
In reply to: 2022-09-08 01:38 Updated by: cazfi
2022-09-09 06:32 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
Kommentar

Reply To lachu

Done.

Thanks

2022-09-14 11:42 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Dateianhangliste

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden