I am developing a component of a software on processing packets. The input comes as a pointer to an array of packets (each packet is a struct, with a field for pointer to packet data and a field for packet len). How would I use BPF rule to help me skip some packets, it will greatly reduce the processing time since I don't need to waste time on packets that are not useful. I know libpcap will allow this, but it assume the input is is a file in the form of pcap format. Thanks. asked 31 Jul '15, 07:27 pktUser1001 edited 31 Jul '15, 16:02 Guy Harris ♦♦ |
One Answer:
Use Use For each packet, construct a answered 31 Jul '15, 10:58 Guy Harris ♦♦ |
Thank you so much Guy! Really helpful. Wish I can vote you up multiple times.