Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183431
b: refs/heads/master
c: fc6a110
h: refs/heads/master
i:
  183429: 91788a1
  183427: 9b9306a
  183423: 8fa63ce
v: v3
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Jan 7, 2010
1 parent e913fb9 commit 83dbb34
Show file tree
Hide file tree
Showing 4 changed files with 7 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: f6de7acc42de909ccc7f00916ddb4d2064f42b67
refs/heads/master: fc6a110754476362f9f4fa3199a637f2331c5993
1 change: 1 addition & 0 deletions trunk/include/net/phonet/pep.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static inline struct pnpipehdr *pnp_hdr(struct sk_buff *skb)

enum {
PNS_PIPE_DATA = 0x20,
PNS_PIPE_ALIGNED_DATA,

PNS_PEP_CONNECT_REQ = 0x40,
PNS_PEP_CONNECT_RESP,
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/phonet/pep-gprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
goto drop;
}

if (likely(skb_headroom(skb) & 3)) {
if (skb_headroom(skb) & 3) {
struct sk_buff *rskb, *fs;
int flen = 0;

/* Phonet Pipe data header is misaligned (3 bytes),
/* Phonet Pipe data header may be misaligned (3 bytes),
* so wrap the IP packet as a single fragment of an head-less
* socket buffer. The network stack will pull what it needs,
* but at least, the whole IP payload is not memcpy'd. */
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/phonet/pep.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ static int pipe_do_rcv(struct sock *sk, struct sk_buff *skb)
queue = &pn->ctrlreq_queue;
goto queue;

case PNS_PIPE_ALIGNED_DATA:
__skb_pull(skb, 1);
/* fall through */
case PNS_PIPE_DATA:
__skb_pull(skb, 3); /* Pipe data header */
if (!pn_flow_safe(pn->rx_fc)) {
Expand Down

0 comments on commit 83dbb34

Please sign in to comment.