in which function published address and status compared in generic on off server.

when message relay by any node how can other node know that it is for him and update status.

for example if I subscribe some nodes to 0xc001 group and others to 0xc002 group now if one client publish the group address 0xc001 how others node know that relay message is not for them.I mean where is the address comparison for subscribe mode in light_server_generic_onoff_server code in sdk _mesh_2.2?