Lines Matching refs:ptr
93 uint8_t ptr; in icmpv4_update_record_route() local
113 ptr = opt_data[offset++]; in icmpv4_update_record_route()
119 if (ptr >= opt_len) { in icmpv4_update_record_route()
121 if (net_pkt_write_u8(reply, ptr)) { in icmpv4_update_record_route()
142 if ((ptr + addr_len) > opt_len) { in icmpv4_update_record_route()
147 if (net_pkt_write_u8(reply, ptr + addr_len)) { in icmpv4_update_record_route()
153 skip = ptr - ptr_offset; in icmpv4_update_record_route()
204 uint8_t ptr; in icmpv4_update_time_stamp() local
224 ptr = opt_data[offset++]; in icmpv4_update_time_stamp()
235 if (ptr >= opt_len) { in icmpv4_update_time_stamp()
244 if (net_pkt_write_u8(reply, ptr)) { in icmpv4_update_time_stamp()
283 if (net_pkt_write_u8(reply, ptr + new_entry_len)) { in icmpv4_update_time_stamp()
295 skip = ptr - ptr_offset; in icmpv4_update_time_stamp()