Browse Source

rate limit log lines resulting from strict-source drops

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

+ 3
- 2
daemon/media_socket.c View File

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


Loading…
Cancel
Save