Home
last modified time | relevance | path

Searched refs:device_index (Results 1 – 3 of 3) sorted by relevance

/system/connectivity/shill/shims/
Dnetfilter_queue_processor.cc289 uint32_t NetfilterQueueProcessor::GetNetmaskForDevice(int device_index) { in GetNetmaskForDevice() argument
292 if (if_indextoname(device_index, ifr.ifr_name) != ifr.ifr_name) { in GetNetmaskForDevice()
330 int device_index, in FindListener() argument
335 (*it)->device_index == device_index && in FindListener()
345 int device_index, in FindDestination() argument
350 (*it)->device_index == device_index && in FindDestination()
376 int device_index = packet.in_device(); in IsIncomingPacketAllowed() local
381 entry_ptr = FindDestination(port, device_index, address); in IsIncomingPacketAllowed()
383 entry_ptr = FindListener(port, device_index, address); in IsIncomingPacketAllowed()
412 int device_index = packet.out_device(); in LogOutgoingPacket() local
[all …]
Dnetfilter_queue_processor.h108 device_index(0), in ListenerEntry()
120 device_index(device_index_in), in ListenerEntry()
126 int device_index; member
149 static uint32_t GetNetmaskForDevice(int device_index);
157 uint16_t port, int device_index, uint32_t address);
162 uint16_t port, int device_index, uint32_t destination);
Dnetfilter_queue_processor_unittest.cc133 EXPECT_EQ(kDevice2, GetListener(0).device_index); in TEST_F()
146 EXPECT_EQ(kDevice1, GetListener(0).device_index); in TEST_F()
151 EXPECT_EQ(kDevice2, GetListener(1).device_index); in TEST_F()
163 EXPECT_EQ(kDevice2, GetListener(0).device_index); in TEST_F()
168 EXPECT_EQ(kDevice1, GetListener(1).device_index); in TEST_F()
180 EXPECT_EQ(kDevice1, GetListener(0).device_index); in TEST_F()