Lines Matching refs:pack1
878 _dnsPacket_isEqualDomainName( DnsPacket* pack1, DnsPacket* pack2 ) in _dnsPacket_isEqualDomainName() argument
880 const uint8_t* p1 = pack1->cursor; in _dnsPacket_isEqualDomainName()
881 const uint8_t* end1 = pack1->end; in _dnsPacket_isEqualDomainName()
898 pack1->cursor = p1; in _dnsPacket_isEqualDomainName()
923 _dnsPacket_isEqualBytes( DnsPacket* pack1, DnsPacket* pack2, int numBytes ) in _dnsPacket_isEqualBytes() argument
925 const uint8_t* p1 = pack1->cursor; in _dnsPacket_isEqualBytes()
928 if ( p1 + numBytes > pack1->end || p2 + numBytes > pack2->end ) in _dnsPacket_isEqualBytes()
934 pack1->cursor += numBytes; in _dnsPacket_isEqualBytes()
940 _dnsPacket_isEqualQR( DnsPacket* pack1, DnsPacket* pack2 ) in _dnsPacket_isEqualQR() argument
943 if ( !_dnsPacket_isEqualDomainName(pack1, pack2) || in _dnsPacket_isEqualQR()
944 !_dnsPacket_isEqualBytes(pack1, pack2, 2+2) ) in _dnsPacket_isEqualQR()
951 _dnsPacket_isEqualQuery( DnsPacket* pack1, DnsPacket* pack2 ) in _dnsPacket_isEqualQuery() argument
956 _dnsPacket_rewind(pack1); in _dnsPacket_isEqualQuery()
960 if ((pack1->base[2] & 1) != (pack2->base[2] & 1)) { in _dnsPacket_isEqualQuery()
966 _dnsPacket_skip(pack1, 4); in _dnsPacket_isEqualQuery()
970 count1 = _dnsPacket_readInt16(pack1); in _dnsPacket_isEqualQuery()
978 _dnsPacket_skip(pack1, 6); in _dnsPacket_isEqualQuery()
983 if (!_dnsPacket_isEqualQR(pack1, pack2)) { in _dnsPacket_isEqualQuery()
1201 DnsPacket pack1[1], pack2[1]; in entry_equals() local
1206 _dnsPacket_init(pack1, e1->query, e1->querylen); in entry_equals()
1209 return _dnsPacket_isEqualQuery(pack1, pack2); in entry_equals()