Searched refs:pattern_bytes (Results 1 – 1 of 1) sorted by relevance
229 } __attribute__((__packed__)) pattern_bytes; in CreateIPV4PatternAndMask() local230 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() local252 memset(&pattern_bytes, 0, sizeof(pattern_bytes)); in CreateIPV6PatternAndMask()253 CHECK_EQ(sizeof(pattern_bytes.ipv6_hdr.ip6_src), ip_addr.GetLength()); in CreateIPV6PatternAndMask()[all …]