Lines Matching refs:pack1

883 _dnsPacket_isEqualDomainName( DnsPacket*  pack1, DnsPacket*  pack2 )  in _dnsPacket_isEqualDomainName()  argument
885 const uint8_t* p1 = pack1->cursor; in _dnsPacket_isEqualDomainName()
886 const uint8_t* end1 = pack1->end; in _dnsPacket_isEqualDomainName()
903 pack1->cursor = p1; in _dnsPacket_isEqualDomainName()
928 _dnsPacket_isEqualBytes( DnsPacket* pack1, DnsPacket* pack2, int numBytes ) in _dnsPacket_isEqualBytes() argument
930 const uint8_t* p1 = pack1->cursor; in _dnsPacket_isEqualBytes()
933 if ( p1 + numBytes > pack1->end || p2 + numBytes > pack2->end ) in _dnsPacket_isEqualBytes()
939 pack1->cursor += numBytes; in _dnsPacket_isEqualBytes()
945 _dnsPacket_isEqualQR( DnsPacket* pack1, DnsPacket* pack2 ) in _dnsPacket_isEqualQR() argument
948 if ( !_dnsPacket_isEqualDomainName(pack1, pack2) || in _dnsPacket_isEqualQR()
949 !_dnsPacket_isEqualBytes(pack1, pack2, 2+2) ) in _dnsPacket_isEqualQR()
956 _dnsPacket_isEqualRR( DnsPacket* pack1, DnsPacket* pack2 ) in _dnsPacket_isEqualRR() argument
960 if ( !_dnsPacket_isEqualQR(pack1, pack2) || in _dnsPacket_isEqualRR()
961 !_dnsPacket_isEqualBytes(pack1, pack2, 4) ) in _dnsPacket_isEqualRR()
965 rdlength1 = _dnsPacket_readInt16(pack1); in _dnsPacket_isEqualRR()
968 !_dnsPacket_isEqualBytes(pack1, pack2, rdlength1) ) in _dnsPacket_isEqualRR()
975 _dnsPacket_isEqualQuery( DnsPacket* pack1, DnsPacket* pack2 ) in _dnsPacket_isEqualQuery() argument
980 _dnsPacket_rewind(pack1); in _dnsPacket_isEqualQuery()
984 if ((pack1->base[2] & 1) != (pack2->base[2] & 1)) { in _dnsPacket_isEqualQuery()
989 if (pack1->base[3] != pack2->base[3]) { in _dnsPacket_isEqualQuery()
995 _dnsPacket_skip(pack1, 4); in _dnsPacket_isEqualQuery()
999 count1 = _dnsPacket_readInt16(pack1); in _dnsPacket_isEqualQuery()
1007 _dnsPacket_skip(pack1, 4); in _dnsPacket_isEqualQuery()
1011 arcount1 = _dnsPacket_readInt16(pack1); in _dnsPacket_isEqualQuery()
1020 if (!_dnsPacket_isEqualQR(pack1, pack2)) { in _dnsPacket_isEqualQuery()
1028 if (!_dnsPacket_isEqualRR(pack1, pack2)) { in _dnsPacket_isEqualQuery()
1246 DnsPacket pack1[1], pack2[1]; in entry_equals() local
1251 _dnsPacket_init(pack1, e1->query, e1->querylen); in entry_equals()
1254 return _dnsPacket_isEqualQuery(pack1, pack2); in entry_equals()