projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3ab6fd
)
ppp: use PPP_TRANS instead of the magic number 0x20
author
Changli Gao
<xiaosuo@gmail.com>
Tue, 14 Jun 2011 21:58:13 +0000
(21:58 +0000)
committer
David S. Miller
<davem@conan.davemloft.net>
Fri, 17 Jun 2011 03:43:55 +0000
(23:43 -0400)
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/ppp_async.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ppp_async.c
b/drivers/net/ppp_async.c
index a1b82c9c67d246c64f41ee1ec51f83b04fe0a6fa..c554a397e558c2b0fbd5ac0ff2d94523612f8a42 100644
(file)
--- a/
drivers/net/ppp_async.c
+++ b/
drivers/net/ppp_async.c
@@
-523,7
+523,7
@@
static void ppp_async_process(unsigned long arg)
#define PUT_BYTE(ap, buf, c, islcp) do { \
if ((islcp && c < 0x20) || (ap->xaccm[c >> 5] & (1 << (c & 0x1f)))) {\
*buf++ = PPP_ESCAPE; \
- *buf++ = c ^
0x20;
\
+ *buf++ = c ^
PPP_TRANS;
\
} else \
*buf++ = c; \
} while (0)
@@
-896,7
+896,7
@@
ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
sp = skb_put(skb, n);
memcpy(sp, buf, n);
if (ap->state & SC_ESCAPE) {
- sp[0] ^=
0x20
;
+ sp[0] ^=
PPP_TRANS
;
ap->state &= ~SC_ESCAPE;
}
}