From 85675ba066cbecad4c1a69b07e78c36133c86d7e Mon Sep 17 00:00:00 2001 From: William Metcalf Date: Thu, 11 Dec 2008 09:30:52 -0600 Subject: [PATCH] added fix for compiler warning in reject code --- src/respond-reject-libnet11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/respond-reject-libnet11.c b/src/respond-reject-libnet11.c index 6af4d66425..b7abea3e1a 100644 --- a/src/respond-reject-libnet11.c +++ b/src/respond-reject-libnet11.c @@ -194,10 +194,10 @@ int RejectSendLibnet11L3IPv4ICMP(ThreadVars *tv, Packet *p, void *data, int dir) /* build the package */ if ((t = libnet_build_icmpv4_unreach ( - ICMP_DEST_UNREACH, /* type */ - ICMP_HOST_ANO, /* code */ + ICMP_DEST_UNREACH, /* type */ + ICMP_HOST_ANO, /* code */ 0, /* checksum */ - p->ip4h, /* payload */ + (u_int8_t *)p->ip4h, /* payload */ lpacket.len, /* payload length */ c, /* libnet context */ 0)) < 0) /* libnet ptag */