Searched refs:pimhdr (Results 1 – 2 of 2) sorted by relevance
55 struct pimhdr { struct76 static inline struct pimhdr *pim_hdr(const struct sk_buff *skb) in pim_hdr() argument78 return (struct pimhdr *)skb_transport_header(skb); in pim_hdr()81 static inline u8 pim_hdr_version(const struct pimhdr *pimhdr) in pim_hdr_version() argument83 return pimhdr->type >> 4; in pim_hdr_version()86 static inline u8 pim_hdr_type(const struct pimhdr *pimhdr) in pim_hdr_type() argument88 return pimhdr->type & 0xf; in pim_hdr_type()
3606 struct pimhdr *pimhdr, _pimhdr; in br_multicast_pim() local3608 pimhdr = skb_header_pointer(skb, offset, sizeof(_pimhdr), &_pimhdr); in br_multicast_pim()3609 if (!pimhdr || pim_hdr_version(pimhdr) != PIM_VERSION || in br_multicast_pim()3610 pim_hdr_type(pimhdr) != PIM_TYPE_HELLO) in br_multicast_pim()