File: README.LSF

package info (click to toggle)
lsfcc 0.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 336 kB
  • ctags: 341
  • sloc: ansic: 1,500; yacc: 369; sh: 337; lex: 75; makefile: 54
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).