No Description

Filter.cpp 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include <vector>
  2. #include "packet.h"
  3. /// \file
  4. /// \fn void FilterBySrcAddr(vector<Packet> &netdata, string address)
  5. /// \~English
  6. /// Function that filters the packets in the netflow by the source address
  7. /// \param netdata packets vector
  8. /// \param address key address to filter
  9. /// \~Spanish
  10. /// Funcion que filtra los paquetes en el flujo de red por la direccion fuente
  11. /// \param netdata vector de paquetes
  12. /// \param address direccion llave para el fitro
  13. void FilterBySrcAddr(vector<Packet> &netdata, string address){
  14. // YOUR CODE HERE
  15. }
  16. /// \fn void FilterByDstAddr(vector<Packet> &netdata, string address)
  17. /// \~English
  18. /// Function that filters the packets in the netflow by the destination address
  19. /// \param netdata packets vector
  20. /// \param address key address to filter
  21. /// \~Spanish
  22. /// Funcion que filtra los paquetes en el flujo de red por la direccion destino
  23. /// \param netdata vector de paquetes
  24. /// \param address direccion llave para el fitro
  25. void FilterByDstAddr(vector<Packet> &netdata, string address){
  26. // YOUR CODE HERE
  27. }
  28. /// \fn void FilterBySrcPort(vector<Packet> &netdata, int port)
  29. /// \~English
  30. /// Function that filters the packets in the netflow by the source port
  31. /// \param netdata packets vector
  32. /// \param port key port to filter
  33. /// \~Spanish
  34. /// Funcion que filtra los paquetes en el flujo de red por el puerto fuente
  35. /// \param netdata vector de paquetes
  36. /// \param port puerto llave para el fitro
  37. void FilterBySrcPort(vector<Packet> &netdata, int port){
  38. // YOUR CODE HERE
  39. }
  40. /// \fn void FilterByDstPort(vector<Packet> &netdata, int port)
  41. /// \~English
  42. /// Function that filters the packets in the netflow by the destination port
  43. /// \param netdata packets vector
  44. /// \param port key port to filter
  45. /// \~Spanish
  46. /// Funcion que filtra los paquetes en el flujo de red por el puerto destino
  47. /// \param netdata vector de paquetes
  48. /// \param port puerto llave para el fitro
  49. void FilterByDstPort(vector<Packet> &netdata, int port){
  50. // YOUR CODE HERE
  51. }