Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20175
b: refs/heads/master
c: d93077f
h: refs/heads/master
i:
  20173: b3029d7
  20171: a49e297
  20167: 5cc5aa0
  20159: f08ec95
v: v3
  • Loading branch information
Samuel Ortiz authored and David S. Miller committed Feb 10, 2006
1 parent 68fa182 commit d7322b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 28633514afd68afa77ed2fa34fa53626837bf2d5
refs/heads/master: d93077fb0e7cb9d4f4094a649501d840c55fdc8b
3 changes: 3 additions & 0 deletions trunk/include/net/irda/irlap.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
/* May be different when we get VFIR */
#define LAP_MAX_HEADER (LAP_ADDR_HEADER + LAP_CTRL_HEADER)

/* Each IrDA device gets a random 32 bits IRLAP device address */
#define LAP_ALEN 4

#define BROADCAST 0xffffffff /* Broadcast device address */
#define CBROADCAST 0xfe /* Connection broadcast address */
#define XID_FORMAT 0x01 /* Discovery XID format */
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/irda/irda_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,12 @@ static void irda_task_timer_expired(void *data)
static void irda_device_setup(struct net_device *dev)
{
dev->hard_header_len = 0;
dev->addr_len = 0;
dev->addr_len = LAP_ALEN;

dev->type = ARPHRD_IRDA;
dev->tx_queue_len = 8; /* Window size + 1 s-frame */

memset(dev->broadcast, 0xff, 4);
memset(dev->broadcast, 0xff, LAP_ALEN);

dev->mtu = 2048;
dev->flags = IFF_NOARP;
Expand Down

0 comments on commit d7322b7

Please sign in to comment.