int Stream5ProcessIcmp(Packet *p) { switch (p->icmph->type) { case ICMP_DEST_UNREACH: return ProcessIcmpUnreach(p); break; case ICMP_ECHO: case ICMP_ECHOREPLY: return ProcessIcmpEcho(p); break; default: /* We only handle the above ICMP messages with stream5 */ break; } return 0; }
int StreamProcessIcmp(Packet *p) { int status; switch (p->icmph->type) { case ICMP_DEST_UNREACH: status = ProcessIcmpUnreach(p); break; case ICMP_ECHO: case ICMP_ECHOREPLY: status = ProcessIcmpEcho(p); break; default: /* We only handle the above ICMP messages with stream5 */ status = 0; break; } return status; }