From baa7022bbbc86afa06118c281329cff759191bd7 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 30 Nov 2018 09:27:57 +0000 Subject: MH_ALIGN -> m_align. In revarprequest() set the ph_rtableid so that the function is doing the same initialisation as arprequest(). OK bluhm@ --- sys/netinet/if_ether.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/netinet/if_ether.c') diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 2965ec08c5d..21b133233cd 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.236 2018/06/11 08:48:54 mpi Exp $ */ +/* $OpenBSD: if_ether.c,v 1.237 2018/11/30 09:27:56 claudio Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -246,7 +246,7 @@ arprequest(struct ifnet *ifp, u_int32_t *sip, u_int32_t *tip, u_int8_t *enaddr) m->m_pkthdr.len = sizeof(*ea); m->m_pkthdr.ph_rtableid = ifp->if_rdomain; m->m_pkthdr.pf.prio = ifp->if_llprio; - MH_ALIGN(m, sizeof(*ea)); + m_align(m, sizeof(*ea)); ea = mtod(m, struct ether_arp *); eh = (struct ether_header *)sa.sa_data; memset(ea, 0, sizeof(*ea)); @@ -873,8 +873,9 @@ revarprequest(struct ifnet *ifp) return; m->m_len = sizeof(*ea); m->m_pkthdr.len = sizeof(*ea); + m->m_pkthdr.ph_rtableid = ifp->if_rdomain; m->m_pkthdr.pf.prio = ifp->if_llprio; - MH_ALIGN(m, sizeof(*ea)); + m_align(m, sizeof(*ea)); ea = mtod(m, struct ether_arp *); eh = (struct ether_header *)sa.sa_data; memset(ea, 0, sizeof(*ea)); -- cgit v1.2.3