diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 943254515e9f..a360b4f8228e 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -668,7 +668,7 @@ found: */ if (mff || ip->ip_off) { ipstat.ips_fragments++; - m->m_pkthdr.header = (caddr_t)ip; + m->m_pkthdr.header = ip; #ifdef IPDIVERT m = ip_reass(m, fp, &ipq[sum], &divert_info, &divert_cookie); diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index d59ab541796e..e2945686e778 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -92,7 +92,7 @@ struct pkthdr { struct ifnet *rcvif; /* rcv interface */ int len; /* total packet length */ /* variables for ip and tcp reassembly */ - caddr_t header; /* pointer to packet header */ + void *header; /* pointer to packet header */ /* variables for hardware checksum */ int csum_flags; /* flags regarding checksum */ int csum_data; /* data field used by csum routines */