how to write firewall codes in opencl

Hi my friends,
I am writing program in OpenCL language, but I beginner in OpenCL. my program how to write IP traffic control (IP DDoS), how do filtering the IP, and if came more from IP, in this status the IP it is entering according to time . Is there a person who knows how to write a this program?
Thank you for your time, I waiting for your support, I appreciate the your help,Thank you in advance.

You use clEnqueueMapBuffer or clEnqueueWriteBuffer to send data to an OpenCL device and parse it using whatever algorithms you need written in OpenCL C. These are kinda the basics.