Home
last modified time | relevance | path

Searched refs:pimhdr (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/include/linux/
Dpim.h55 struct pimhdr { struct
76 static inline struct pimhdr *pim_hdr(const struct sk_buff *skb) in pim_hdr() argument
78 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() argument
83 return pimhdr->type >> 4; in pim_hdr_version()
86 static inline u8 pim_hdr_type(const struct pimhdr *pimhdr) in pim_hdr_type() argument
88 return pimhdr->type & 0xf; in pim_hdr_type()
/Linux-v4.19/net/bridge/
Dbr_multicast.c1780 struct pimhdr *pimhdr, _pimhdr; in br_multicast_pim() local
1782 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()