• D
    net/announce: Add optional ID · 944458b6
    Dr. David Alan Gilbert 提交于
    Previously there was a single instance of the timer used by
    monitor triggered announces, that's OK, but when combined with the
    previous change that lets you have announces for subsets of interfaces
    it's a bit restrictive if you want to do different things to different
    interfaces.
    
    Add an 'id' field to the announce, and maintain a list of the
    timers based on id.
    
    This allows you to for example:
        a) Start an announce going on interface eth0 for a long time
        b) Start an announce going on interface eth1 for a long time
        c) Kill the announce on eth0 while leaving eth1 going.
    Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
    Signed-off-by: NJason Wang <jasowang@redhat.com>
    944458b6
announce.c 5.8 KB