iproute2/include
Gregoire Baron 3822cc986c tc: add ACT_CSUM action support (csum)
Add the iproute2 support for the ACT_CSUM action. Can be used as
following, certainly in conjunction with the ACT_PEDIT action (pedit):

 # In order to DNAT (stateless) IPv4 packet from 192.168.1.100 to
 #  0x12345678 (18.52.86.120), and update the IPv4 header checksum and
 #  the UDP checksum (the last one, only if the packet is UDP).
tc filter add eth0 prio 1 protocol ip parent ffff: \
  u32 match ip src 192.168.1.100/32 flowid :1 \
    action pedit munge offset 16 u32 set 0x12345678 \
      pipe csum ip and udp

 # In order to alter destination address of IPv6 TCP packets from fc00::1
 #  and correct the TCP checksum (nothing happened? except maybe for
 #  checksums in the TCP payload ...).
tc filter add eth0 prio 1 protocol ipv6 parent ffff: \
  u32 match ip6 src fc00::1/128 match ip6 protocol 0x06 0xff flowid :1 \
    action pedit munge offset 24 u32 set 0x12345678 \
      pipe csum tcp
2010-12-01 11:17:46 -08:00
..
libiptc iproute2: Support IFF_LOWER_UP and IFF_DORMANT 2007-06-19 16:40:40 -07:00
linux tc: add ACT_CSUM action support (csum) 2010-12-01 11:17:46 -08:00
netinet add include/netinet/tcp.h 2007-12-31 12:56:08 -08:00
SNAPSHOT.h Snapshot for 2.6.35.1 2010-08-23 08:14:38 -07:00
dlfcn.h support static-only systems 2009-11-10 10:44:20 -08:00
ip6tables.h Remove trailing whitespace 2006-12-05 10:10:22 -08:00
iptables.h Remove trailing whitespace 2006-12-05 10:10:22 -08:00
iptables_common.h fix build warnings 2007-06-20 10:55:18 -07:00
libnetlink.h flush secondary addresses before primary ones 2009-12-26 10:11:02 -08:00
ll_map.h iproute2: Add ll_index_to_addr function 2009-12-01 15:54:16 -08:00
rt_names.h Add support for larger number of routing tables 2006-08-10 16:12:07 -07:00
rtm_map.h (Logical change 1.3) 2004-04-15 20:56:59 +00:00
utils.h Allow 'ip addr flush' to loop more than 10 times 2010-12-01 11:13:51 -08:00
xt-internal.h Breakage noticed when debian upgraded to xtables (iptables > 1.4.1) 2009-02-19 09:02:13 -08:00