File: README.LSF

package info (click to toggle)
lsfcc 0.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 324 kB
  • ctags: 217
  • sloc: ansic: 1,551; yacc: 408; sh: 337; lex: 85; makefile: 55
file content (8 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
-*- text -*-

  Some basic information about LSF. When you SO_ATTACH_FILTER to a
PF_INET, SOCK_STREAM socket, as an example, the data that your filter
program is run over consists of the TCP header followed by the packet
payload. If you want to get at the IP header, you need to use an
offset of -0x100000 (SKF_NET_OFF from <linux/filter.h>). If you want
the link level header, use -0x200000 (SKF_LL_OFF).