Lines Matching refs:opt_len
84 uint8_t opt_len, in icmpv4_update_record_route() argument
101 if (net_pkt_write_u8(reply, opt_len + 2U)) { in icmpv4_update_record_route()
119 if (ptr >= opt_len) { in icmpv4_update_record_route()
127 if (net_pkt_write(reply, opt_data + offset, opt_len)) { in icmpv4_update_record_route()
131 len += opt_len; in icmpv4_update_record_route()
142 if ((ptr + addr_len) > opt_len) { in icmpv4_update_record_route()
171 if (opt_len > offset) { in icmpv4_update_record_route()
172 if (net_pkt_write(reply, opt_data + offset, opt_len - offset)) { in icmpv4_update_record_route()
177 len += opt_len - offset; in icmpv4_update_record_route()
192 uint8_t opt_len, in icmpv4_update_time_stamp() argument
212 if (net_pkt_write_u8(reply, opt_len + 2U)) { in icmpv4_update_time_stamp()
235 if (ptr >= opt_len) { in icmpv4_update_time_stamp()
259 if (net_pkt_write(reply, opt_data + offset, opt_len)) { in icmpv4_update_time_stamp()
263 len += opt_len; in icmpv4_update_time_stamp()
335 if (opt_len > offset) { in icmpv4_update_time_stamp()
336 if (net_pkt_write(reply, opt_data + offset, opt_len - offset)) { in icmpv4_update_time_stamp()
341 len += opt_len - offset; in icmpv4_update_time_stamp()
353 uint8_t opt_len, in icmpv4_reply_to_options() argument
360 return icmpv4_update_record_route(opt_data, opt_len, in icmpv4_reply_to_options()
363 return icmpv4_update_time_stamp(opt_data, opt_len, in icmpv4_reply_to_options()