Home
last modified time | relevance | path

Searched refs:pim (Results 1 – 3 of 3) sorted by relevance

/net/ipv4/
Dipmr.c2182 struct igmphdr *pim; in pim_rcv_v1() local
2186 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(struct iphdr))) in pim_rcv_v1()
2189 pim = igmp_hdr(skb); in pim_rcv_v1()
2195 pim->group != PIM_V1_VERSION || pim->code != PIM_V1_REGISTER) in pim_rcv_v1()
2198 if (__pim_rcv(mrt, skb, sizeof(*pim))) { in pim_rcv_v1()
2209 struct pimreghdr *pim; in pim_rcv() local
2213 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(struct iphdr))) in pim_rcv()
2216 pim = (struct pimreghdr *)skb_transport_header(skb); in pim_rcv()
2217 if (pim->type != ((PIM_VERSION << 4) | (PIM_TYPE_REGISTER)) || in pim_rcv()
2218 (pim->flags & PIM_NULL_REGISTER) || in pim_rcv()
[all …]
DKconfig253 (pimd-v1). Please see <http://netweb.usc.edu/pim/> for more
/net/ipv6/
Dip6mr.c525 struct pimreghdr *pim; in pim6_rcv() local
536 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap))) in pim6_rcv()
539 pim = (struct pimreghdr *)skb_transport_header(skb); in pim6_rcv()
540 if (pim->type != ((PIM_VERSION << 4) | PIM_TYPE_REGISTER) || in pim6_rcv()
541 (pim->flags & PIM_NULL_REGISTER) || in pim6_rcv()
543 sizeof(*pim), IPPROTO_PIM, in pim6_rcv()
544 csum_partial((void *)pim, sizeof(*pim), 0)) && in pim6_rcv()
550 sizeof(*pim)); in pim6_rcv()
554 ntohs(encap->payload_len) + sizeof(*pim) > skb->len) in pim6_rcv()