summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
Commit message (Collapse)AuthorAgeFilesLines
* *: make sure zebra.h is always included firstDavid Lamparter2015-10-161-2/+2
| | | | | | | | zebra.h pulls in config.h, which results in fiddling with things like __FILE_OFFSET_BITS. It must always be included first, in order to set flags that influence the compiler via <features.h>. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: Fix compile warning (error with Werror) on BSDPaul Jakma2015-09-241-2/+5
| | | | | * ioctl commands can vary in type between systems, cast to an unsigned long before passing to format command.
* pimd: Create ability to modify hell and hold timers per interfaceDonald Sharp2015-09-031-1/+68
| | | | | | | | | | | Create new per interface command: 'ip pim hello <1-180> {<1-180>}' The first number is the Hello Timer for this interface The second number is the Hold Timer to pass to neighbors on this interface. The second number is optional. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Change ioctl call failure from vty_out to zlog_warnDonald Sharp2015-08-211-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | The command 'show ip multicast' when run, iterates over all interfaces on the router, if you do not have pim configured on that interface it would generate an error message: Interface Address ifi Vif PktsIn PktsOut BytesIn BytesOut br1 20.0.15.1 7 7 0 0 0 0 swp1 169.254.0.10 3 3 0 0 0 0 swp2 169.254.0.26 4 4 0 0 0 0 ioctl(SIOCGETVIFCNT=35296) failure for interface swp3 vif_index=-1: errno=22: Invalid argument ioctl(SIOCGETVIFCNT=35296) failure for interface swp4 vif_index=-1: errno=22: Invalid argument This fixes the issue to display this instead: Interface Address ifi Vif PktsIn PktsOut BytesIn BytesOut br1 20.0.15.1 7 7 0 0 0 0 swp1 169.254.0.10 3 3 0 0 0 0 swp2 169.254.0.26 4 4 0 0 0 0 swp3 0.0.0.0 5 -1 0 0 0 0 swp4 0.0.0.0 6 -1 0 0 0 0 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: Add ability to set DR Priority for an interfaceDonald Sharp2015-08-211-5/+69
| | | | | | | | | | | | | | | | | | From RFC 4601, Section 4.3.1: The DR_Priority Option allows a network administrator to give preference to a particular router in the DR election process by giving it a numerically larger DR Priority. The DR_Priority Option SHOULD be included in every Hello message, even if no DR Priority is explicitly configured on that interface. This is necessary because priority-based DR election is only enabled when all neighbors on an interface advertise that they are capable of using the DR_Priority Option. The default priority is 1. This modification allows the setting of the DR Priority on a per interface basis. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: add support for configuring multicast static routesJafar Al-Gharaibeh2015-08-211-1/+353
| | | | | | | | | | | | | | | | | | | | | | Hi, This patch adds the ability to configure multicast static routes directly into pimd. Two source files are introduced to implement the new feature in addition to changes to existing files. Here is how it can be used the CLI: interface <incoming interface> ip mroute <outgoing interface> <group addr> # for asm or ip mroute <outgoing interface> <group addr> <source> # for ssm Please let me know if you have any questions or concerns, Regards, Jafar Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pim: 'show debugging' collisionDonald Sharp2015-07-291-6/+7
| | | | | | | The 'show debugging' cli as setup by pim collided with 'show debugging isis'. Fix that and clean up cli help commands to actually display correctly. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* pimd: cast ioctl values when printing themDavid Lamparter2015-04-211-4/+4
| | | | | | | | ioctl values might be int or long, cast them to unsigned long for consistent printing. (They're long on FreeBSD, but were printed with %d.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Revert "pimd: clear zclient-update: Reset zclient update connection to zebra ↵David Lamparter2015-02-041-12/+0
| | | | | | | | | | | | | | | daemon" This reverts commit 3456a80f5f8e6e44c30453bd92eabf5faf7ab25b. Conflicts: pimd/pim_zebra.c This depends on the zebra reconnect changes, which we're not picking up at this point. This revert is partial, only bumping out the reconnect-related changes. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* pimd: Addition of Hello & Join-Prune message debug commandsBalaji.G2015-02-041-2/+55
| | | | | Separate "debug pim packets hello and Join-Prune" added to enable hello and Join-Prune debugs specifically
* pimd: show ip pim lan-prune-delay: Cosmetic.Everton Marques2015-02-041-2/+2
|
* pimd: sh ip multicast: Display zclient socket fail counter.Everton Marques2015-02-041-2/+4
|
* pimd: sh ip multicast: Display zclient sockets.Everton Marques2015-02-041-0/+16
|
* pimd: Remove unused pim checksum in favour of quagga's version.Everton Marques2015-02-041-1/+1
|
* pimd: Fix interface "no ip igmp" should not disrupt PIM. Plus docs updates.Everton Marques2015-02-041-1/+1
|
* pimd: clear zclient-update: Reset zclient update connection to zebra daemonEverton Marques2015-02-041-0/+13
|
* pimd: Fix compiler warnings.Everton Marques2015-02-041-9/+0
|
* pimd: Cosmetic fix for dr uptime display.Everton Marques2015-02-041-2/+2
|
* Fix pim join uptime display.Everton Marques2015-02-041-1/+1
|
* C18 MFC never recovers from removal of static route to sourceEverton Marques2015-02-041-38/+90
|
* Run DR election when hello packet is received.Everton Marques2015-02-041-2/+3
|
* fix address assigmentKlemen Sladic2015-02-041-1/+1
|
* pimd: fix worst char * <> uint8_t * interminglingDavid Lamparter2015-02-041-11/+11
|
* pimd: use socklen_t consistentlyDavid Lamparter2015-02-041-1/+1
|
* pimd: fix format stringsDavid Lamparter2015-02-041-7/+7
| | | | | | | | | | | | | | | | * pim_igmp.c, * pim_igmpv3.c, * pim_pim.c, * pim_tlv.c: use %zu / %zd for size_t/ssize_t * pim_iface.c, * pim_ifchannel.c, * pim_mroute.c, * pim_neighbor.c, * pim_oil.c, * pim_ssmpingd.c, * pim_upstream.c: %zu for size_t * pim_cmd.c: %zu + a few (long long) casts for int64_t * pim_hello.c: %td for ptrdiff_t
* [pim] "show ip route" renamed to "show ip rib"Everton Marques2015-02-041-6/+6
|
* [pim] Cosmetic RPF refresh timer displayEverton Marques2015-02-041-1/+1
|
* [pim] debug mrouteEverton Marques2015-02-041-0/+31
|
* [pim] show ip igmp joinEverton Marques2015-02-041-0/+69
|
* [pim] test pim receive dumpEverton Marques2015-02-041-10/+36
|
* [pim] test pim receive dumpEverton Marques2015-02-041-0/+92
|
* [pim] Packet dump debuggingEverton Marques2015-02-041-0/+76
|
* [pim] T41 DONE ssmping supportEverton Marques2015-02-041-2/+15
|
* [pim] Hooks for ssmpingd supportEverton Marques2015-02-041-2/+80
|
* [pim] Skeleton for ssmpingd supportEverton Marques2015-02-041-0/+60
|
* [pim] clean-upEverton Marques2015-02-041-1/+0
|
* [pim] show ip pim lan-prune-delay: fix cosmetic alignmentEverton Marques2015-02-041-1/+1
|
* [pim] More RPF cache refresh statisticsEverton Marques2015-02-041-10/+15
|
* [pim] RPF cache refresh statisticsEverton Marques2015-02-041-9/+21
|
* [pim] Log physical interface up/downEverton Marques2015-02-041-21/+21
| | | | | | | | | [pim] Replace strerror with safe_strerror [pim] Fix PIM socket removal from non-PIM interfaces [pim] show ip igmp querier: left-align Querier string [pim] Version up to 0.157 [pim] Recipe to re-sync with Quagga repository [pim] Build vtysh in development script
* [pim] pim commands added to vtyshLeonard Herve2015-02-041-151/+151
|
* [pim] Initial pim 0.155Everton Marques2015-02-041-0/+3923