View | Details | Raw Unified | Return to bug 22177
Collapse All | Expand All

(-)netinet/if_ether.c (+6 lines)
Lines 506-511 Link Here
506
	struct in_addr isaddr, itaddr, myaddr;
506
	struct in_addr isaddr, itaddr, myaddr;
507
	int op;
507
	int op;
508
508
509
	if (m->m_len < sizeof(struct ether_arp) &&
510
	    (m = m_pullup(m, sizeof(struct ether_arp))) == NULL) {
511
		log(LOG_ERR, "arp: runt packet -- m_pullup failed\n");
512
		return;
513
	}
514
509
	ea = mtod(m, struct ether_arp *);
515
	ea = mtod(m, struct ether_arp *);
510
	op = ntohs(ea->arp_op);
516
	op = ntohs(ea->arp_op);
511
	(void)memcpy(&isaddr, ea->arp_spa, sizeof (isaddr));
517
	(void)memcpy(&isaddr, ea->arp_spa, sizeof (isaddr));

Return to bug 22177