patch-tcp_raw_c 692 B

1234567891011121314151617181920
  1. --- dsniff-2.4.orig/tcp_raw.c 2001-03-15 09:33:04.000000000 +0100
  2. +++ dsniff-2.4/tcp_raw.c 2009-12-11 12:43:35.000000000 +0100
  3. @@ -119,7 +119,7 @@ tcp_raw_reassemble(struct tcp_conn *conn
  4. }
  5. struct iovec *
  6. -tcp_raw_input(struct libnet_ip_hdr *ip, struct libnet_tcp_hdr *tcp, int len)
  7. +tcp_raw_input(struct libnet_ipv4_hdr *ip, struct libnet_tcp_hdr *tcp, int len)
  8. {
  9. struct tha tha;
  10. struct tcp_conn *conn;
  11. @@ -131,7 +131,7 @@ tcp_raw_input(struct libnet_ip_hdr *ip,
  12. /* Verify TCP checksum. */
  13. cksum = tcp->th_sum;
  14. - libnet_do_checksum((u_char *) ip, IPPROTO_TCP, len);
  15. + libnet_do_checksum(NULL, (u_char *) ip, IPPROTO_TCP, len);
  16. if (cksum != tcp->th_sum)
  17. return (NULL);