Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87213
b: refs/heads/master
c: 140ee96
h: refs/heads/master
i:
  87211: 0ab79d6
v: v3
  • Loading branch information
Gui Jianfeng authored and David S. Miller committed Mar 5, 2008
1 parent 7375a5b commit 74f088e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d66afe7805b169b6bf3c7a88cf8163298b8ef05
refs/heads/master: 140ee9603c753ce11fc3088c1988a77e92183f9b
8 changes: 8 additions & 0 deletions trunk/net/sctp/sm_make_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,14 @@ static int sctp_process_param(struct sctp_association *asoc,
asoc->peer.ipv4_address = 0;
asoc->peer.ipv6_address = 0;

/* Assume that peer supports the address family
* by which it sends a packet.
*/
if (peer_addr->sa.sa_family == AF_INET6)
asoc->peer.ipv6_address = 1;
else if (peer_addr->sa.sa_family == AF_INET)
asoc->peer.ipv4_address = 1;

/* Cycle through address types; avoid divide by 0. */
sat = ntohs(param.p->length) - sizeof(sctp_paramhdr_t);
if (sat)
Expand Down

0 comments on commit 74f088e

Please sign in to comment.