Home | History | Annotate | Download | only in resolv

Lines Matching refs:pack2

878 _dnsPacket_isEqualDomainName( DnsPacket*  pack1, DnsPacket*  pack2 )
882 const uint8_t* p2 = pack2->cursor;
883 const uint8_t* end2 = pack2->end;
899 pack2->cursor = p2;
923 _dnsPacket_isEqualBytes( DnsPacket* pack1, DnsPacket* pack2, int numBytes )
926 const uint8_t* p2 = pack2->cursor;
928 if ( p1 + numBytes > pack1->end || p2 + numBytes > pack2->end )
935 pack2->cursor += numBytes;
940 _dnsPacket_isEqualQR( DnsPacket* pack1, DnsPacket* pack2 )
943 if ( !_dnsPacket_isEqualDomainName(pack1, pack2) ||
944 !_dnsPacket_isEqualBytes(pack1, pack2, 2+2) )
951 _dnsPacket_isEqualQuery( DnsPacket* pack1, DnsPacket* pack2 )
957 _dnsPacket_rewind(pack2);
960 if ((pack1->base[2] & 1) != (pack2->base[2] & 1)) {
967 _dnsPacket_skip(pack2, 4);
971 count2 = _dnsPacket_readInt16(pack2);
979 _dnsPacket_skip(pack2, 6);
983 if (!_dnsPacket_isEqualQR(pack1, pack2)) {
1201 DnsPacket pack1[1], pack2[1];
1207 _dnsPacket_init(pack2, e2->query, e2->querylen);
1209 return _dnsPacket_isEqualQuery(pack1, pack2);