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.java952 private static boolean isPacketToOrFromClient(short udpSrcPort, short udpDstPort) { in isPacketToOrFromClient() argument
953 return (udpSrcPort == DHCP_CLIENT) || (udpDstPort == DHCP_CLIENT); in isPacketToOrFromClient()
956 private static boolean isPacketServerToServer(short udpSrcPort, short udpDstPort) { in isPacketServerToServer() argument
957 return (udpSrcPort == DHCP_SERVER) && (udpDstPort == DHCP_SERVER); in isPacketServerToServer()
1105 short udpDstPort = packet.getShort(); in decodeFullPacket() local
1112 if (!isPacketToOrFromClient(udpSrcPort, udpDstPort) && in decodeFullPacket()
1113 !isPacketServerToServer(udpSrcPort, udpDstPort)) { in decodeFullPacket()
1119 "Unexpected UDP ports %d->%d", udpSrcPort, udpDstPort); in decodeFullPacket()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1031 final short udpDstPort = buffer.getShort();
1032 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;
1075 final short udpDstPort = buffer.getShort();
1076 return (udpSrcPort == DHCP6_CLIENT_PORT && udpDstPort == DHCP6_SERVER_PORT);