diff options
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 350d47654720..276e26d3d7da 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -1032,19 +1032,21 @@ sctp_disposition_t sctp_sf_backbeat_8_3(const struct sctp_endpoint *ep, | |||
1032 | /* This should never happen, but lets log it if so. */ | 1032 | /* This should never happen, but lets log it if so. */ |
1033 | if (unlikely(!link)) { | 1033 | if (unlikely(!link)) { |
1034 | if (from_addr.sa.sa_family == AF_INET6) { | 1034 | if (from_addr.sa.sa_family == AF_INET6) { |
1035 | printk(KERN_WARNING | 1035 | if (net_ratelimit()) |
1036 | "%s association %p could not find address " | 1036 | printk(KERN_WARNING |
1037 | NIP6_FMT "\n", | 1037 | "%s association %p could not find address " |
1038 | __FUNCTION__, | 1038 | NIP6_FMT "\n", |
1039 | asoc, | 1039 | __FUNCTION__, |
1040 | NIP6(from_addr.v6.sin6_addr)); | 1040 | asoc, |
1041 | NIP6(from_addr.v6.sin6_addr)); | ||
1041 | } else { | 1042 | } else { |
1042 | printk(KERN_WARNING | 1043 | if (net_ratelimit()) |
1043 | "%s association %p could not find address " | 1044 | printk(KERN_WARNING |
1044 | NIPQUAD_FMT "\n", | 1045 | "%s association %p could not find address " |
1045 | __FUNCTION__, | 1046 | NIPQUAD_FMT "\n", |
1046 | asoc, | 1047 | __FUNCTION__, |
1047 | NIPQUAD(from_addr.v4.sin_addr.s_addr)); | 1048 | asoc, |
1049 | NIPQUAD(from_addr.v4.sin_addr.s_addr)); | ||
1048 | } | 1050 | } |
1049 | return SCTP_DISPOSITION_DISCARD; | 1051 | return SCTP_DISPOSITION_DISCARD; |
1050 | } | 1052 | } |