commit | 184f489e9b8c40b4dd4883d3f1364f7786c8755c | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <dborkman@redhat.com> | Tue Apr 16 01:57:46 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Apr 16 16:43:34 2013 -0400 |
tree | 0cb73f7297e1ef2685fcec6310d530ea2993d19e | |
parent | f406c8b9693f2f71ef2caeb0b68521a7d22d00f0 [diff] |
packet: minor: add generic tpacket_uhdr to access packet headers There is no need to add a dozen unions each time at the start of the function. So, do this once and use it instead. Thus, we can remove some duplicate code and make it more readable. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>