Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102691
b: refs/heads/master
c: 99c1459
h: refs/heads/master
i:
  102689: 6e28dee
  102687: cb01e13
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Jun 5, 2008
1 parent 79494e5 commit 53ebcea
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 9bef54383d16568da19cfe46bdc52cdedb9bb8da
refs/heads/master: 99c145939bc1f65f9b946f2b9dd7bfc1f44783d6
10 changes: 6 additions & 4 deletions trunk/net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,15 @@ int tipc_reject_msg(struct sk_buff *buf, u32 err)
msg_set_errcode(rmsg, err);
msg_set_destport(rmsg, msg_origport(msg));
msg_set_origport(rmsg, msg_destport(msg));
if (msg_short(msg))
if (msg_short(msg)) {
msg_set_orignode(rmsg, tipc_own_addr);
else
/* leave name type & instance as zeroes */
} else {
msg_set_orignode(rmsg, msg_destnode(msg));
msg_set_nametype(rmsg, msg_nametype(msg));
msg_set_nameinst(rmsg, msg_nameinst(msg));
}
msg_set_size(rmsg, data_sz + hdr_sz);
msg_set_nametype(rmsg, msg_nametype(msg));
msg_set_nameinst(rmsg, msg_nameinst(msg));
skb_copy_to_linear_data_offset(rbuf, hdr_sz, msg_data(msg), data_sz);

/* send self-abort message when rejecting on a connected port */
Expand Down

0 comments on commit 53ebcea

Please sign in to comment.