Searched refs:udpSrcPort (Results 1 – 2 of 2) sorted by relevance
863 private static boolean isPacketToOrFromClient(short udpSrcPort, short udpDstPort) { in isPacketToOrFromClient() argument864 return (udpSrcPort == DHCP_CLIENT) || (udpDstPort == DHCP_CLIENT); in isPacketToOrFromClient()867 private static boolean isPacketServerToServer(short udpSrcPort, short udpDstPort) { in isPacketServerToServer() argument868 return (udpSrcPort == DHCP_SERVER) && (udpDstPort == DHCP_SERVER); in isPacketServerToServer()1012 short udpSrcPort = packet.getShort(); in decodeFullPacket() local1020 if (!isPacketToOrFromClient(udpSrcPort, udpDstPort) && in decodeFullPacket()1021 !isPacketServerToServer(udpSrcPort, udpDstPort)) { in decodeFullPacket()1027 "Unexpected UDP ports %d->%d", udpSrcPort, udpDstPort); in decodeFullPacket()
526 final short udpSrcPort = buffer.getShort();528 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;