Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133793
b: refs/heads/master
c: 3170c65
h: refs/heads/master
i:
  133791: f493a68
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent 6e6ef65 commit 9d24295
Show file tree
Hide file tree
Showing 2 changed files with 9 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: d289d120b46d9b6c68448b1d1c6d3edb94cdbde6
refs/heads/master: 3170c6568776a58e1eeec8ff949a65f5cf5d7ceb
12 changes: 8 additions & 4 deletions trunk/net/rose/rose_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,22 @@ static const struct header_ops rose_header_ops = {
.rebuild= rose_rebuild_header,
};

static const struct net_device_ops rose_netdev_ops = {
.ndo_open = rose_open,
.ndo_stop = rose_close,
.ndo_start_xmit = rose_xmit,
.ndo_set_mac_address = rose_set_mac_address,
};

void rose_setup(struct net_device *dev)
{
dev->mtu = ROSE_MAX_PACKET_SIZE - 2;
dev->hard_start_xmit = rose_xmit;
dev->open = rose_open;
dev->stop = rose_close;
dev->netdev_ops = &rose_netdev_ops;

dev->header_ops = &rose_header_ops;
dev->hard_header_len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + ROSE_MIN_LEN;
dev->addr_len = ROSE_ADDR_LEN;
dev->type = ARPHRD_ROSE;
dev->set_mac_address = rose_set_mac_address;

/* New-style flags. */
dev->flags = IFF_NOARP;
Expand Down

0 comments on commit 9d24295

Please sign in to comment.