Lines Matching refs:skbdata
99 static bool __ife_tlv_meta_valid(const unsigned char *skbdata, in __ife_tlv_meta_valid() argument
105 if (unlikely(skbdata + sizeof(*tlv) > ifehdr_end)) in __ife_tlv_meta_valid()
108 tlv = (const struct meta_tlvhdr *)skbdata; in __ife_tlv_meta_valid()
119 if (unlikely(skbdata + NLA_ALIGN(tlvlen) > ifehdr_end)) in __ife_tlv_meta_valid()
127 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, in ife_tlv_meta_decode() argument
132 if (!__ife_tlv_meta_valid(skbdata, ifehdr_end)) in ife_tlv_meta_decode()
135 tlv = (struct meta_tlvhdr *)skbdata; in ife_tlv_meta_decode()
142 return skbdata + sizeof(struct meta_tlvhdr); in ife_tlv_meta_decode()
146 void *ife_tlv_meta_next(void *skbdata) in ife_tlv_meta_next() argument
148 struct meta_tlvhdr *tlv = (struct meta_tlvhdr *) skbdata; in ife_tlv_meta_next()
153 return skbdata + tlvlen; in ife_tlv_meta_next()
159 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument
161 __be32 *tlv = (__be32 *) (skbdata); in ife_tlv_meta_encode()