Lines Matching refs:ofs
19 u32* const ofs)) { in FUNC() argument
20 u32 first_unread_offset = *ofs; in FUNC()
27 if (*ofs >= udp_len) return error_packet; in FUNC()
28 v = udp[(*ofs)++]; in FUNC()
32 if (*ofs >= udp_len) return error_packet; in FUNC()
33 w = udp[(*ofs)++]; in FUNC()
34 if (*ofs > first_unread_offset) first_unread_offset = *ofs; in FUNC()
36 … if (new_ofs >= *ofs) return error_packet; /* RFC 1035 4.1.4 allows only backward pointers */ in FUNC()
37 *ofs = new_ofs; in FUNC()
42 if (*ofs + label_size > udp_len) return error_packet; in FUNC()
49 u8 w = udp[(*ofs)++]; in FUNC()
54 *ofs += label_size; in FUNC()
58 *ofs += label_size; in FUNC()
61 if (first_unread_offset > *ofs) *ofs = first_unread_offset; in FUNC()
95 u32 i, ofs = 12; /* dns header is 12 bytes */ in FUNC() local
100 match_result_type m = match_single_name(needles, needle_bound, udp, udp_len, &ofs); in FUNC()
103 if (ofs + 2 > udp_len) return error_packet; in FUNC()
104 qtype = (int)read_be16(udp + ofs); in FUNC()
105 ofs += 4; /* skip be16 qtype & qclass */ in FUNC()
112 match_result_type m = match_single_name(needles, needle_bound, udp, udp_len, &ofs); in FUNC()
114 ofs += 8; /* skip be16 type, class & be32 ttl */ in FUNC()
115 if (ofs + 2 > udp_len) return error_packet; in FUNC()
116 ofs += 2 + read_be16(udp + ofs); /* skip be16 rdata length field, plus length bytes */ in FUNC()