mirror_frr/pimd
Donald Sharp f8e7d7992f pimd: Assume buffer size passed in is of sufficient size
For:
pim_msg_build_header
pim_msg_addr_encode_ipv4_ucast
pim_msg_addr_encode_ipv4_group
pim_msg_addr_encode_ipv4_source

Assume that the buffer size passed in is of sufficient size
already.  This is assured already because buffer sizes
are checked for minimum lengths for the entire packet
ahead of time.  So we are double checking.

Additionally at scale we will be calling these functions
a very very large number of times.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-02-24 10:03:40 -05:00
..
.gitignore pimd: merge pimd as of 2015-01-19 2016-05-25 20:38:32 -04:00
AUTHORS pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
CAVEATS pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
COMMANDS pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
COPYING pimd: merge pimd as of 2015-01-19 2016-05-25 20:38:32 -04:00
DEBUG pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
LINUX_KERNEL_MROUTE_MFC pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
Makefile.am Merge remote-tracking branch 'origin/stable/2.0' 2017-02-07 13:20:12 -05:00
pim_assert.c pimd: Assume buffer size passed in is of sufficient size 2017-02-24 10:03:40 -05:00
pim_assert.h pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_br.c lib, pimd: Fix borked up prefix code 2016-12-21 20:26:05 -05:00
pim_br.h lib, pimd: Fix borked up prefix code 2016-12-21 20:26:05 -05:00
pim_cmd.c *: fix ambiguous commands 2017-02-10 16:57:20 +01:00
pim_cmd.h Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_hello.c Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_hello.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_iface.c pimd: mroute entries unresolved IIF issue 2017-02-14 15:53:34 -05:00
pim_iface.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_ifchannel.c pimd: Fix handling of *,G on RP to allow prune of S,G to go out 2017-01-30 12:54:20 -05:00
pim_ifchannel.h pimd: Use correct flag to add an oif 2017-01-30 12:51:45 -05:00
pim_igmp_join.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_igmp.c pimd: Allow a interface in a vrf to be configured. 2017-02-03 12:33:37 -05:00
pim_igmp.h Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_igmpv2.c pimd: Missing include causes compile failure on some bsd's 2017-01-19 08:49:12 -05:00
pim_igmpv2.h pimd: add support for IGMPv2 2016-12-21 20:26:11 -05:00
pim_igmpv3.c pimd: ifdown sequnce stale report entry 2017-02-14 15:54:29 -05:00
pim_igmpv3.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_int.c pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_int.h pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_join.c Fix PIM DBG message 2017-02-14 15:51:09 -05:00
pim_join.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_macro.c Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_macro.h pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_main.c Merge remote-tracking branch 'origin/stable/2.0' 2017-02-02 10:42:51 -05:00
pim_memory.c pim-anycast-rp: Add limited support for secondary addresses. 2016-12-21 20:26:16 -05:00
pim_memory.h pim-anycast-rp: Add limited support for secondary addresses. 2016-12-21 20:26:16 -05:00
pim_mroute.c pimd: ifdown sequnce stale report entry 2017-02-14 15:54:29 -05:00
pim_mroute.h Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_msdp_packet.c pimd: increase the maximum msdp TLV burst to 100 from 12 2016-12-21 20:26:18 -05:00
pim_msdp_packet.h pimd: Fix the number of SAs pushed into one MSDP SA-TLV 2016-12-21 20:26:17 -05:00
pim_msdp_socket.c pimd: Cleanup shutdown a bit more. 2017-01-30 12:53:47 -05:00
pim_msdp_socket.h pim-msdp: part-1 - initial protocol infra. 2016-12-21 20:26:12 -05:00
pim_msdp.c pimd: reset packet size on tcp connection reset 2016-12-21 20:26:18 -05:00
pim_msdp.h pimd: Drop local SA reference when the upstream SG is deleted 2016-12-21 20:26:18 -05:00
pim_msg.c pimd: Assume buffer size passed in is of sufficient size 2017-02-24 10:03:40 -05:00
pim_msg.h pimd: Assume buffer size passed in is of sufficient size 2017-02-24 10:03:40 -05:00
pim_neighbor.c Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_neighbor.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_oil.c pimd: Fixup tracking of where we got OIF's from. 2017-01-30 12:49:38 -05:00
pim_oil.h pimd: Modify pimreg creation 2017-01-30 12:52:06 -05:00
pim_pim.c pimd: Assume buffer size passed in is of sufficient size 2017-02-24 10:03:40 -05:00
pim_pim.h pimd: Add 'struct pim_msg_header' packed data structure. 2017-02-24 10:03:40 -05:00
pim_register.c pimd: Fix broken switch statement 2017-02-01 20:38:02 -05:00
pim_register.h pimd: Remove dead code from pim_register.c 2016-12-21 20:26:16 -05:00
pim_routemap.c Merge branch 'cmaster-next' into vtysh-grammar 2016-10-20 16:31:49 +00:00
pim_rp.c pimd: Cleanup shutdown a bit more. 2017-01-30 12:53:47 -05:00
pim_rp.h pim-anycast-rp: Add limited support for secondary addresses. 2016-12-21 20:26:16 -05:00
pim_rpf.c pimd: Cleanup compile warnings 2017-01-19 08:49:47 -05:00
pim_rpf.h Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_signals.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_signals.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_sock.c Merge branch 'frr/pull/165' ("Pim vrf") 2017-02-07 15:52:52 +01:00
pim_sock.h pimd: Allow a interface in a vrf to be configured. 2017-02-03 12:33:37 -05:00
pim_ssmpingd.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_ssmpingd.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_static.c Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_static.h pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_str.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_str.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_time.c Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_time.h Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_tlv.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_tlv.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_upstream.c pimd: Fixup tracking of where we got OIF's from. 2017-01-30 12:49:38 -05:00
pim_upstream.h Merge remote-tracking branch 'origin/master' into pim_lib_work2 2017-01-17 21:01:56 -05:00
pim_util.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_util.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_version.c pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_version.h pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pim_vty.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_vty.h pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
pim_zebra.c pimd: Use correct flag to add an oif 2017-01-30 12:51:45 -05:00
pim_zebra.h pimd: Start abstraction of zclient data structure for pim_zebra.c 2017-01-30 10:04:05 -05:00
pim_zlookup.c pimd: mroute entries unresolved IIF issue 2017-02-14 15:53:34 -05:00
pim_zlookup.h pimd: Cleanup shutdown a bit more. 2017-01-30 12:53:47 -05:00
pimd.c Merge branch 'frr/pull/133' ("Pim cleanup") 2017-01-31 15:26:07 +01:00
pimd.conf.sample pimd: Remove unnecessary QuaggaId 2016-12-21 20:26:03 -05:00
pimd.h pimd: Document the J/P packet format a bit better. 2017-02-24 10:03:40 -05:00
README pimd: Fix README file for FRR 2017-01-19 08:57:17 -05:00
test_igmpv3_join.c pimd: Cleanup the headers. 2017-01-19 10:01:02 -05:00
TODO *: Convert libzebra -> libfrr 2017-02-03 08:29:13 -05:00
TROUBLESHOOTING pimd: merge pimd as of 2015-01-19 2016-05-25 20:38:32 -04:00
WHY_SSM pimd: merge pimd as of 2015-01-19 2016-05-25 20:38:32 -04:00

INTRODUCTION

        qpimd aims to implement a PIM (Protocol Independent Multicast)
	daemon for the FRR Routing Suite.

	qpimd implements PIM-SM (Sparse Mode) of RFC 4601.
        Additionally MSDP has been implemented.

	In order to deliver end-to-end multicast routing control
	plane, qpimd includes the router-side of IGMPv[2|3] (RFC 3376).

LICENSE

        qpimd - pimd for FRR
        Copyright (C) 2008 Everton da Silva Marques

        qpimd is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as
        published by the Free Software Foundation; either version 2,
        or (at your option) any later version.

        qpimd is distributed in the hope that it will be useful, but
        WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public
        License along with qpimd; see the file COPYING.  If not, write
        to the Free Software Foundation, Inc., 59 Temple Place - Suite
        330, Boston, MA 02111-1307, USA.

HOME SITE

        qpimd lives at:

        https://github.com/freerangerouting/frr

PLATFORMS

	qpimd has been tested with Debian Jessie.

REQUIREMENTS

	qpimd requires FRR (2.0 or higher)


CONFIGURATION COMMANDS

	See available commands in the file pimd/COMMANDS.

KNOWN CAVEATS

	See list of known caveats in the file pimd/CAVEATS.

SUPPORT

	Please post comments, questions, patches, bug reports at the
	support site:

        https://freerangerouting/frr

RELATED WORK

	igmprt:	An IGMPv3-router implementation
	- http://www.loria.fr/~lahmadi/igmpv3-router.html

	USC pimd: PIMv2-SM daemon
	- http://netweb.usc.edu/pim/pimd (URL broken in 2008-12-23)
	- http://packages.debian.org/source/sid/pimd (from Debian)

	troglobit pimd: This is the original USC pimd from
	http://netweb.usc.edu/pim/. In January 16, 2010 it was revived
	with the intention to collect patches floating around in
	Debian, Gentoo, Lintrack and other distribution repositories
	and to provide a central point of collaboration.
	- http://github.com/troglobit/pimd

	zpimd: zpimd is not dependent of zebra or any other routing daemon
	- ftp://robur.slu.se/pub/Routing/Zebra
	- http://sunsite2.icm.edu.pl/pub/unix/routing/zpimd

	mrd6: an IPv6 Multicast Router for Linux systems
	- http://fivebits.net/proj/mrd6/

	MBGP: Implementation of RFC 2858 for Quagga
	- git://git.coplanar.net/~balajig/quagga
	- http://www.gossamer-threads.com/lists/quagga/dev/18000

REFERENCES

	IANA Protocol Independent Multicast (PIM) Parameters
	http://www.iana.org/assignments/pim-parameters/pim-parameters.txt

	Address Family Numbers
	http://www.iana.org/assignments/address-family-numbers

                              -- END --