The definition can be seen here.
The candidate answer may be tcp and dst port 80
,but can tcp and dst port 80
guarantee it's HTTP
traffic and includes all HTTP traffic?
It seems not,because some site can be visited by specifying a different port other than 80 this way:
http://domain.name:8080
So my question is: what's the exact BPF for HTTP
?
UPDATE
Is there an implementation to verify whether a packet is a HTTP one in c
already?