From d7696f4fa613d2487ac2f0911d40f182f1f88396 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sat, 16 Dec 2017 09:15:28 +0000 Subject: [PATCH] fix the header type --- src/pgw/pgw_gtp_path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pgw/pgw_gtp_path.c b/src/pgw/pgw_gtp_path.c index 2f1a4c7ff..c500cb4a6 100644 --- a/src/pgw/pgw_gtp_path.c +++ b/src/pgw/pgw_gtp_path.c @@ -303,9 +303,9 @@ static status_t pgw_gtp_handle_slacc(c_uint32_t teid, pkbuf_t *recvbuf) struct ip6_hdr *ip6_h = (struct ip6_hdr *)recvbuf->payload; if (ip6_h->ip6_nxt == IPPROTO_ICMPV6) { - struct icmphdr *icmp_h = - (struct icmphdr *)(recvbuf->payload + sizeof(struct ip6_hdr)); - if (icmp_h->type == ND_ROUTER_SOLICIT) + struct icmp6_hdr *icmp_h = + (struct icmp6_hdr *)(recvbuf->payload + sizeof(struct ip6_hdr)); + if (icmp_h->icmp6_type == ND_ROUTER_SOLICIT) { pgw_bearer_t *bearer = NULL; pgw_sess_t *sess = NULL;