Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/net/bridge/
Dbr_multicast.c3606 struct pimhdr *pimhdr, _pimhdr; in br_multicast_pim() local
3608 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()