Searched refs:ip_packet (Results 1 – 5 of 5) sorted by relevance
/system/connectivity/shill/vpn/ |
D | third_party_vpn_driver_unittest.cc | 129 std::vector<uint8_t> ip_packet(5, 0); in TEST_F() local 130 driver_->SendPacket(ip_packet, &error); in TEST_F() 135 driver_->SendPacket(ip_packet, &error); in TEST_F() 140 EXPECT_CALL(mock_file_io_, Write(fd, ip_packet.data(), ip_packet.size())) in TEST_F() 141 .WillOnce(Return(ip_packet.size() - 1)); in TEST_F() 145 driver_->SendPacket(ip_packet, &error); in TEST_F() 149 EXPECT_CALL(mock_file_io_, Write(fd, ip_packet.data(), ip_packet.size())) in TEST_F() 150 .WillOnce(Return(ip_packet.size())); in TEST_F() 151 driver_->SendPacket(ip_packet, &error); in TEST_F()
|
D | third_party_vpn_driver.cc | 170 void ThirdPartyVpnDriver::SendPacket(const std::vector<uint8_t>& ip_packet, in SendPacket() argument 178 } else if (file_io_->Write(tun_fd_, ip_packet.data(), ip_packet.size()) != in SendPacket() 179 static_cast<ssize_t>(ip_packet.size())) { in SendPacket() 400 std::vector<uint8_t> ip_packet(data->buf, data->buf + data->len); in OnInput() local 401 adaptor_interface_->EmitPacketReceived(ip_packet); in OnInput()
|
/system/connectivity/shill/dbus/ |
D | chromeos_third_party_vpn_dbus_adaptor.cc | 128 const std::vector<uint8_t>& ip_packet) { in SendPacket() argument 131 client_->SendPacket(ip_packet, &error_message); in SendPacket()
|
D | chromeos_third_party_vpn_dbus_adaptor.h | 62 const std::vector<uint8_t>& ip_packet) override;
|
/system/extras/tests/net_test/ |
D | multinetwork_base.py | 471 def ReceivePacketOn(self, netid, ip_packet): argument 474 packet = scapy.Ether(src=routermac, dst=mymac) / ip_packet
|