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  
    119119}
    120120
    121121struct iovec *
    122 tcp_raw_input(struct libnet_ip_hdr *ip, struct libnet_tcp_hdr *tcp, int len)
     122tcp_raw_input(struct libnet_ipv4_hdr *ip, struct libnet_tcp_hdr *tcp, int len)
    123123{
    124124        struct tha tha;
    125125        struct tcp_conn *conn;
     
    131131
    132132        /* Verify TCP checksum. */
    133133        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);
    135135
    136136        if (cksum != tcp->th_sum)
    137137                return (NULL);