Annotation of embedaddon/quagga/pimd/pim_msg.h, revision 1.1
1.1 ! misho 1: /*
! 2: PIM for Quagga
! 3: Copyright (C) 2008 Everton da Silva Marques
! 4:
! 5: This program is free software; you can redistribute it and/or modify
! 6: it under the terms of the GNU General Public License as published by
! 7: the Free Software Foundation; either version 2 of the License, or
! 8: (at your option) any later version.
! 9:
! 10: This program is distributed in the hope that it will be useful, but
! 11: WITHOUT ANY WARRANTY; without even the implied warranty of
! 12: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 13: General Public License for more details.
! 14:
! 15: You should have received a copy of the GNU General Public License
! 16: along with this program; see the file COPYING; if not, write to the
! 17: Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
! 18: MA 02110-1301 USA
! 19:
! 20: $QuaggaId: $Format:%an, %ai, %h$ $
! 21: */
! 22:
! 23: #ifndef PIM_MSG_H
! 24: #define PIM_MSG_H
! 25:
! 26: #include <netinet/in.h>
! 27:
! 28: /*
! 29: Number Description
! 30: ---------- ------------------
! 31: 0 Reserved
! 32: 1 IP (IP version 4)
! 33: 2 IP6 (IP version 6)
! 34:
! 35: From:
! 36: http://www.iana.org/assignments/address-family-numbers
! 37: */
! 38: #define PIM_MSG_ADDRESS_FAMILY_IPV4 (1)
! 39:
! 40: void pim_msg_build_header(uint8_t *pim_msg, int pim_msg_size,
! 41: uint8_t pim_msg_type);
! 42: uint8_t *pim_msg_addr_encode_ipv4_ucast(uint8_t *buf,
! 43: int buf_size,
! 44: struct in_addr addr);
! 45: uint8_t *pim_msg_addr_encode_ipv4_group(uint8_t *buf,
! 46: int buf_size,
! 47: struct in_addr addr);
! 48: uint8_t *pim_msg_addr_encode_ipv4_source(uint8_t *buf,
! 49: int buf_size,
! 50: struct in_addr addr);
! 51:
! 52: #endif /* PIM_MSG_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>