Deleted Added
full compact
34c34
< * $FreeBSD: head/sys/net/if_ethersubr.c 50477 1999-08-28 01:08:13Z peter $
---
> * $FreeBSD: head/sys/net/if_ethersubr.c 52248 1999-10-15 05:07:00Z msmith $
135,136c135,136
< int s, error = 0;
< u_char edst[6];
---
> int s, error = 0, hdrcmplt = 0;
> u_char esrc[6], edst[6];
328a329,334
> case pseudo_AF_HDRCMPLT:
> hdrcmplt = 1;
> eh = (struct ether_header *)dst->sa_data;
> (void)memcpy(esrc, eh->ether_shost, sizeof (esrc));
> /* FALLTHROUGH */
>
353,354c359,364
< (void)memcpy(eh->ether_shost, ac->ac_enaddr,
< sizeof(eh->ether_shost));
---
> if (hdrcmplt)
> (void)memcpy(eh->ether_shost, esrc,
> sizeof(eh->ether_shost));
> else
> (void)memcpy(eh->ether_shost, ac->ac_enaddr,
> sizeof(eh->ether_shost));