Fix issue #28: Add RedHat init+spec file for .rpm build

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix issue #35: Port support for timing out other queriers from mrouted.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix issue #31: Make IGMP query interval and querier timeout configurable.

With sanity checks of IGMP querier timeout setting.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Update pimd.conf and pimd(8) with new configuration options

    default_igmp_query_interval <SEC>
        Time between IGMP queries, when elected.
        Default: 125 sec

    default_igmp_querier_timeout <SEC>
        Time before currently elected querier times out.
        Default: 255 sec

    spt_threshold [rate <KBPS> | packets <NUM> | infinity] [interval <SEC>]
        Replaces old configuration options, which are kept for backwards
        compatibility.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Add support for Travis CI

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Add support for Coverity Scan

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix GitHub issue #22: Crash in (S,G) state when neighbor is lost

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pidfile(): Update to OpenBSD v1.10, to fix resource leak.

Fixes Coverity Scan CID #60564

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix Coverity CID #71263 and #71269: Uninitialized scalar variables

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Remove very old mroute kernel workaround.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pimd: Change to use stdint.h instead of type unsafe homegrown variants.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix missing break; in signal handler for SIGALARM.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pim.c:accept_pim() - Fix missing break; in reception of PIM_GRAFT messages.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
mrt.c:find_route() - Fix possible NULL pointer dereference.

Found thanks to Coverity Scan.  See CID #71260 for details.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
pim_proto.c:send_periodic_pim_join_prune() - Fix possible NULL pointer deref.

Found thanks to Coverity Scan.  See CID #71258 for details.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
rp.c:bootstrap_initial_delay() - Fix bad bit shift operation.

The sizeof(delay) used in the bit shift to get log_mask is
64 on a 64-bit platform, which is not what was intended.

Adjust long and int to uint32_t and int32_t from stdint.h

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
main.c:killshow() - Check result of remove()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
main.c: Minor cleanup and check result of mkdir("/var/run/pimd")

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
config.c:parse_rp_address() - Remove unnecessary sscanf() of dummy value.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Refactor ce7604e -- only check result of remove(), nothing else.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>