Projet

Général

Profil

« Précédent | Suivant » 

Révision 8135339c

Ajouté par Ermal il y a presque 10 ans

Add print icmp as part of Ticket #3663 and also avoid warnings during build

Voir les différences:

pfPorts/filterlog/files/print-tcp.c
121 121
        u_int32_t seq, ack;
122 122
        register const struct ip6_hdr *ip6;
123 123

  
124
        tp = (struct tcphdr *)bp;
124
        tp = (const struct tcphdr *)bp;
125 125

  
126 126
        hlen = (tp->th_off & 0x0f) * 4;
127 127
        if (hlen < sizeof(*tp)) {
......
130 130
                return;
131 131
        }
132 132

  
133
        ip = (struct ip *)bp2;
133
        ip = (const struct ip *)bp2;
134 134
        if (IP_V(ip) == 6)
135
                ip6 = (struct ip6_hdr *)bp2;
135
                ip6 = (const struct ip6_hdr *)bp2;
136 136
        else
137 137
                ip6 = NULL;
138 138
        ch = '\0';

Formats disponibles : Unified diff