Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3923
b: refs/heads/master
c: ff593c5
h: refs/heads/master
i:
  3921: 7a5ec00
  3919: 6b1bc62
v: v3
  • Loading branch information
Denis Vlasenko authored and David S. Miller committed Jun 28, 2005
1 parent a284511 commit a081d99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fe40f73d7591b38f129fe6a9c0fa46e0b192d09
refs/heads/master: ff593c592a5d674822dce31143635b025f6415b2
7 changes: 3 additions & 4 deletions trunk/net/ethernet/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ int eth_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,
* Set the source hardware address.
*/

if(saddr)
memcpy(eth->h_source,saddr,dev->addr_len);
else
memcpy(eth->h_source,dev->dev_addr,dev->addr_len);
if(!saddr)
saddr = dev->dev_addr;
memcpy(eth->h_source,saddr,dev->addr_len);

/*
* Anyway, the loopback-device should never use this function...
Expand Down

0 comments on commit a081d99

Please sign in to comment.