Home
last modified time | relevance | path

Searched refs:ip_packet (Results 1 – 5 of 5) sorted by relevance

/system/connectivity/shill/vpn/
Dthird_party_vpn_driver_unittest.cc129 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()
Dthird_party_vpn_driver.cc170 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/
Dchromeos_third_party_vpn_dbus_adaptor.cc128 const std::vector<uint8_t>& ip_packet) { in SendPacket() argument
131 client_->SendPacket(ip_packet, &error_message); in SendPacket()
Dchromeos_third_party_vpn_dbus_adaptor.h62 const std::vector<uint8_t>& ip_packet) override;
/system/extras/tests/net_test/
Dmultinetwork_base.py471 def ReceivePacketOn(self, netid, ip_packet): argument
474 packet = scapy.Ether(src=routermac, dst=mymac) / ip_packet