Lines Matching defs:pim
91 * and PIM-SMv2 and PIM-DM support, advanced API support,
104 #ifdef PIM
135 #ifdef PIM
136 #include <netinet/pim.h>
246 #ifdef PIM
290 #ifdef PIM
294 * Note: the PIM Register encapsulation adds the following in front of a
299 * struct pim_encap_pimhdr pim;
304 struct pim pim;
318 PIM_MAKE_VT(PIM_VERSION, PIM_REGISTER), /* PIM vers and message type */
327 #endif /* PIM */
338 * whether or not special PIM assert processing is enabled.
714 * Set PIM assert processing global
776 #ifdef PIM
831 #ifdef PIM
927 #ifdef PIM
1607 * If we are doing PIM assert processing, send a message
1610 * XXX: A PIM-SM router needs the WRONGVIF detection so it
1618 #ifdef PIM
1696 #ifdef PIM
2720 #ifdef PIM
2760 * Return a copy of the data packet that is ready for PIM Register
2791 /* Compute the MTU after the PIM Register encapsulation */
2864 * Encapsulate the data packet in PIM Register message and send it to the RP.
2896 * Fill in the encapsulating IP and PIM header
2923 pimhdr->pim.pim_cksum = in_cksum(mb_first, sizeof(pim_encap_pimhdr));
2939 * PIM-SMv2 and PIM-DM messages processing.
2940 * Receives and verifies the PIM control messages, and passes them
2943 * (used by PIM-SM): the PIM header is stripped off, and the inner packet
2950 struct pim *pim;
2976 * and grab the PIM REGISTER header size, to avoid another
2985 * Get the IP and PIM headers in contiguous memory, and
2986 * possibly the PIM REGISTER header.
2996 /* adjust mbuf to point to the PIM header */
2999 pim = mtod(m, struct pim *);
3002 * Validate checksum. If PIM REGISTER, exclude the data packet.
3008 if (PIM_VT_T(pim->pim_vt) == PIM_REGISTER && in_cksum(m, PIM_MINLEN) == 0) {
3018 /* PIM version check */
3019 if (PIM_VT_V(pim->pim_vt) < PIM_VERSION) {
3022 PIM_VT_V(pim->pim_vt), PIM_VERSION);
3031 if (PIM_VT_T(pim->pim_vt) == PIM_REGISTER) {
3034 * headers ip + pim + u_int32 + encap_ip, to be passed up to the
3073 reghdr = (u_int32_t *)(pim + 1);
3149 "pim_input: pim register: could not copy register head\n");
3181 * Pass the PIM message up to the daemon; if it is a Register message,
3183 * outer IP header, PIM header, PIM-Register header and the
3197 #endif /* PIM */