[systemd-devel] siphash24 gives unmatched bloom_mask and bloom_filter?

eshark77 at 163.com eshark77 at 163.com
Mon Jun 8 06:26:20 PDT 2015


Hi, David
   I just modified the  src/libsystemd/sd-bus/test-bus-match.c. 
And you could add the following two lines in the bloom_add_data() in bus-bloom.c
         for (i = 0; i < size/sizeof(uint64_t); i++)
            log_info("bloom: filter[%d] = 0x%llx",i, filter[i]);


 > Hi, All,
>      I use libsystemd.so for the kdbus protocol layer, and  I met a
> question that I added a signal matching rule by sd_bus_add_match() , then I
> sent signal by sd_bus_send().
> But I couldn't receive this signal  because its bloom_filter  caculated by
> siphash24()  NOT match the bloom_mask which was also caculated by
> siphash24().
>
>  For example ,  when adding matching rule for "
> type='signal',interface='service.a.interface',path='/service/a',member='com_0yunos_0spms_0uninstall',arg0path='/p1/p2/p3'
> " by sd_bus_add_match(),
> Can you provide a real C-code example so we can reproduce this?



Thank you very much!
Li Cheng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150608/ff036c6a/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-bus-match.c
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150608/ff036c6a/attachment-0001.c>


More information about the systemd-devel mailing list