Browse Source

rate limit log lines resulting from strict-source drops

Change-Id: I33d49285f031b761c618f57f9564ed69a8f15e3d
changes/05/30405/1
Richard Fuchs 7 years ago
parent
commit
e17544a452
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      daemon/media_socket.c

+ 3
- 2
daemon/media_socket.c View File

@ -1542,7 +1542,7 @@ static int media_packet_address_check(struct packet_handler_ctx *phc)
int tmp = memcmp(&endpoint, &phc->mp.stream->endpoint, sizeof(endpoint)); int tmp = memcmp(&endpoint, &phc->mp.stream->endpoint, sizeof(endpoint));
if (tmp && PS_ISSET(phc->mp.stream, MEDIA_HANDOVER)) { if (tmp && PS_ISSET(phc->mp.stream, MEDIA_HANDOVER)) {
/* out_lock remains locked */ /* out_lock remains locked */
ilog(LOG_INFO, "Peer address changed to %s%s%s",
ilog(LOG_INFO | LOG_FLAG_LIMIT, "Peer address changed to %s%s%s",
FMT_M(endpoint_print_buf(&phc->mp.fsin))); FMT_M(endpoint_print_buf(&phc->mp.fsin)));
phc->unkernelize = 1; phc->unkernelize = 1;
phc->update = 1; phc->update = 1;
@ -1553,7 +1553,8 @@ static int media_packet_address_check(struct packet_handler_ctx *phc)
mutex_unlock(&phc->mp.stream->out_lock); mutex_unlock(&phc->mp.stream->out_lock);
if (tmp && PS_ISSET(phc->mp.stream, STRICT_SOURCE)) { if (tmp && PS_ISSET(phc->mp.stream, STRICT_SOURCE)) {
ilog(LOG_INFO, "Drop due to strict-source attribute; got %s%s%s:%s%d%s, "
ilog(LOG_INFO | LOG_FLAG_LIMIT, "Drop due to strict-source attribute; "
"got %s%s%s:%s%d%s, "
"expected %s%s%s:%s%d%s", "expected %s%s%s:%s%d%s",
FMT_M(sockaddr_print_buf(&endpoint.address)), FMT_M(endpoint.port), FMT_M(sockaddr_print_buf(&endpoint.address)), FMT_M(endpoint.port),
FMT_M(sockaddr_print_buf(&phc->mp.stream->endpoint.address)), FMT_M(sockaddr_print_buf(&phc->mp.stream->endpoint.address)),


Loading…
Cancel
Save