Home
last modified time | relevance | path

Searched refs:udpDstPort (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java863 private static boolean isPacketToOrFromClient(short udpSrcPort, short udpDstPort) { in isPacketToOrFromClient() argument
864 return (udpSrcPort == DHCP_CLIENT) || (udpDstPort == DHCP_CLIENT); in isPacketToOrFromClient()
867 private static boolean isPacketServerToServer(short udpSrcPort, short udpDstPort) { in isPacketServerToServer() argument
868 return (udpSrcPort == DHCP_SERVER) && (udpDstPort == DHCP_SERVER); in isPacketServerToServer()
1013 short udpDstPort = packet.getShort(); in decodeFullPacket() local
1020 if (!isPacketToOrFromClient(udpSrcPort, udpDstPort) && in decodeFullPacket()
1021 !isPacketServerToServer(udpSrcPort, udpDstPort)) { in decodeFullPacket()
1027 "Unexpected UDP ports %d->%d", udpSrcPort, udpDstPort); in decodeFullPacket()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java527 final short udpDstPort = buffer.getShort();
528 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;