Lines Matching refs:wrapped
170 static size_t test_modem_ppp_unwrap(uint8_t *unwrapped, const uint8_t *wrapped, size_t wrapped_size) in test_modem_ppp_unwrap() argument
177 if (wrapped[wrapped_pos] == 0x7D) { in test_modem_ppp_unwrap()
178 unwrapped[unwrapped_pos] = wrapped[wrapped_pos + 1] ^ 0x20; in test_modem_ppp_unwrap()
185 unwrapped[unwrapped_pos] = wrapped[wrapped_pos]; in test_modem_ppp_unwrap()
232 static size_t test_modem_ppp_wrap_ppp_frame(uint8_t *wrapped, const uint8_t *frame, size_t size) in test_modem_ppp_wrap_ppp_frame() argument
236 wrapped[0] = 0x7E; in test_modem_ppp_wrap_ppp_frame()
237 wrapped[1] = 0xFF; in test_modem_ppp_wrap_ppp_frame()
238 wrapped[2] = 0x7D; in test_modem_ppp_wrap_ppp_frame()
239 wrapped[3] = 0x23; in test_modem_ppp_wrap_ppp_frame()
243 wrapped[wrapped_pos] = 0x7D; in test_modem_ppp_wrap_ppp_frame()
244 wrapped[wrapped_pos + 1] = frame[i] ^ 0x20; in test_modem_ppp_wrap_ppp_frame()
249 wrapped[wrapped_pos] = frame[i]; in test_modem_ppp_wrap_ppp_frame()
253 wrapped[wrapped_pos] = 0x7E; in test_modem_ppp_wrap_ppp_frame()