Révision 8135339c
Ajouté par Ermal il y a presque 10 ans
pfPorts/filterlog/files/print-ip.c | ||
---|---|---|
122 | 122 |
{ |
123 | 123 |
const struct udphdr *up; |
124 | 124 |
|
125 |
up = (struct udphdr *)ipds->cp; |
|
125 |
up = (const struct udphdr *)ipds->cp;
|
|
126 | 126 |
sbuf_printf(sbuf, "%d,%d,%d", EXTRACT_16BITS(&up->uh_sport), EXTRACT_16BITS(&up->uh_dport), |
127 | 127 |
EXTRACT_16BITS(&up->uh_ulen)); |
128 | 128 |
|
129 | 129 |
} |
130 | 130 |
break; |
131 | 131 |
|
132 |
#if 0 |
|
133 | 132 |
case IPPROTO_ICMP: |
134 | 133 |
/* pass on the MF bit plus the offset to detect fragments */ |
135 |
icmp_print(ipds->cp, ipds->len, (const u_char *)ipds->ip, |
|
134 |
icmp_print(sbuf, ipds->cp, ipds->len, (const u_char *)ipds->ip,
|
|
136 | 135 |
ipds->off & (IP_MF|IP_OFFMASK)); |
137 | 136 |
break; |
138 | 137 |
|
138 |
#if 0 |
|
139 | 139 |
case IPPROTO_PIGP: |
140 | 140 |
/* |
141 | 141 |
* XXX - the current IANA protocol number assignments |
Formats disponibles : Unified diff
Add print icmp as part of Ticket #3663 and also avoid warnings during build