Annotation of embedaddon/quagga/pimd/pim_oil.h, revision 1.1.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_OIL_H
                     24: #define PIM_OIL_H
                     25: 
                     26: #include "pim_mroute.h"
                     27: 
                     28: #define PIM_OIF_FLAG_PROTO_IGMP (1 << 0) /* bitmask 1 */
                     29: #define PIM_OIF_FLAG_PROTO_PIM  (1 << 1) /* bitmask 2 */
                     30: #define PIM_OIF_FLAG_PROTO_ANY  (3)      /* bitmask (1 | 2) */
                     31: 
                     32: /*
                     33:   qpim_channel_oil_list holds a list of struct channel_oil.
                     34: 
                     35:   Each channel_oil.oil is used to control an (S,G) entry in the Kernel
                     36:   Multicast Forwarding Cache.
                     37: */
                     38: 
                     39: struct channel_oil {
                     40:   struct mfcctl oil;
                     41:   int           oil_size;
                     42:   int           oil_ref_count;
                     43:   time_t        oif_creation[MAXVIFS];
                     44:   uint32_t      oif_flags[MAXVIFS];
                     45: };
                     46: 
                     47: void pim_channel_oil_free(struct channel_oil *c_oil);
                     48: struct channel_oil *pim_channel_oil_add(struct in_addr group_addr,
                     49:                                        struct in_addr source_addr,
                     50:                                        int input_vif_index);
                     51: void pim_channel_oil_del(struct channel_oil *c_oil);
                     52: 
                     53: #endif /* PIM_OIL_H */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>