Lines Matching refs:pattern_bytes
229 } __attribute__((__packed__)) pattern_bytes; in CreateIPV4PatternAndMask() local
230 memset(&pattern_bytes, 0, sizeof(pattern_bytes)); in CreateIPV4PatternAndMask()
231 CHECK_EQ(sizeof(pattern_bytes.ipv4_hdr.saddr), ip_addr.GetLength()); in CreateIPV4PatternAndMask()
232 memcpy(&pattern_bytes.ipv4_hdr.saddr, ip_addr.GetConstData(), in CreateIPV4PatternAndMask()
235 reinterpret_cast<unsigned char*>(&pattern_bytes.ipv4_hdr.saddr) - in CreateIPV4PatternAndMask()
236 reinterpret_cast<unsigned char*>(&pattern_bytes); in CreateIPV4PatternAndMask()
240 reinterpret_cast<const unsigned char*>(&pattern_bytes), pattern_len)); in CreateIPV4PatternAndMask()
251 } __attribute__((__packed__)) pattern_bytes; in CreateIPV6PatternAndMask() local
252 memset(&pattern_bytes, 0, sizeof(pattern_bytes)); in CreateIPV6PatternAndMask()
253 CHECK_EQ(sizeof(pattern_bytes.ipv6_hdr.ip6_src), ip_addr.GetLength()); in CreateIPV6PatternAndMask()
254 memcpy(&pattern_bytes.ipv6_hdr.ip6_src, ip_addr.GetConstData(), in CreateIPV6PatternAndMask()
257 reinterpret_cast<unsigned char*>(&pattern_bytes.ipv6_hdr.ip6_src) - in CreateIPV6PatternAndMask()
258 reinterpret_cast<unsigned char*>(&pattern_bytes); in CreateIPV6PatternAndMask()
262 reinterpret_cast<const unsigned char*>(&pattern_bytes), pattern_len)); in CreateIPV6PatternAndMask()