View Single Post
  #1   (View Single Post)  
Old 8th March 2013
vpenkoff vpenkoff is offline
New User
 
Join Date: Mar 2013
Posts: 2
Default FreeBSD's BPF data representation

Hi guys. I'm diggin some bpf stuff and i can't figure out, why there are 3 types of data representations: words, halfwords and bytes? I mean how can i know, which one is best to use? In some basic example, e.g. for packet capture, considering BPF's manual, i use for ETHERTYPE in the ethernet header a halfword representation, but for a IP address - word representation. Can somebody explain? 10x!
Reply With Quote