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()
1780 struct pimhdr *pimhdr, _pimhdr; in br_multicast_pim() local1782 pimhdr = skb_header_pointer(skb, offset, sizeof(_pimhdr), &_pimhdr); in br_multicast_pim()1783 if (!pimhdr || pim_hdr_version(pimhdr) != PIM_VERSION || in br_multicast_pim()1784 pim_hdr_type(pimhdr) != PIM_TYPE_HELLO) in br_multicast_pim()