* [PATCH 2.4] Mask C/R bit from connection address
@ 2003-06-17 2:09 Jean Tourrilhes
0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2003-06-17 2:09 UTC (permalink / raw)
To: Marcelo Tosatti, Jeff Garzik, Linux kernel mailing list
ir241_caddr_mask.diff :
<Patch from Jan Kiszka>
o [CORRECT] ignore the C/R bit in the LAP connection address.
--- linux/net/irda/irlap_frame.d0.c Fri Apr 11 18:38:03 2003
+++ linux/net/irda/irlap_frame.c Fri Apr 11 18:38:15 2003
@@ -162,8 +162,8 @@ static void irlap_recv_snrm_cmd(struct i
frame = (struct snrm_frame *) skb->data;
if (skb->len >= sizeof(struct snrm_frame)) {
- /* Copy the new connection address */
- info->caddr = frame->ncaddr;
+ /* Copy the new connection address ignoring the C/R bit */
+ info->caddr = frame->ncaddr & 0xFE;
/* Check if the new connection address is valid */
if ((info->caddr == 0x00) || (info->caddr == 0xfe)) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-17 1:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-17 2:09 [PATCH 2.4] Mask C/R bit from connection address Jean Tourrilhes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®