Ticket #21225: patch-tcp_raw.c.diff
File patch-tcp_raw.c.diff, 588 bytes (added by hsivank@…, 15 years ago) |
---|
-
tcp_raw.c
old new 119 119 } 120 120 121 121 struct iovec * 122 tcp_raw_input(struct libnet_ip _hdr *ip, struct libnet_tcp_hdr *tcp, int len)122 tcp_raw_input(struct libnet_ipv4_hdr *ip, struct libnet_tcp_hdr *tcp, int len) 123 123 { 124 124 struct tha tha; 125 125 struct tcp_conn *conn; … … 131 131 132 132 /* Verify TCP checksum. */ 133 133 cksum = tcp->th_sum; 134 libnet_do_checksum( (u_char *) ip, IPPROTO_TCP, len);134 libnet_do_checksum(NULL, (u_char *) ip, IPPROTO_TCP, len); 135 135 136 136 if (cksum != tcp->th_sum) 137 137 return (NULL);