Skip to content

Commit

Permalink
Expand the local buffer to hold ipv6 address string
Browse files Browse the repository at this point in the history
The buffer that is used to hold the string that represents the ipv6
address is only 16bytes strong. Expand it to INET6_ADDRSTRLEN (or
46 bytes) in size.

Change-Id: I063f6f85ef9a0a0021d21b5602b40383d0382a1b
Closes-BUG: #1543389
  • Loading branch information
anandhk-juniper committed Feb 10, 2016
1 parent 426c31c commit 3e492d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ dump_table(struct flow_table *ft)
char action, flag_string[sizeof(fe->fe_flags) * 8 + 32];
unsigned int need_drop_reason = 0;
const char *drop_reason = NULL;
char in_src[INET_ADDRSTRLEN], in_dest[INET6_ADDRSTRLEN];
char in_src[INET6_ADDRSTRLEN], in_dest[INET6_ADDRSTRLEN];

printf("Flow table(size %lu, entries %u)\n\n", ft->ft_span,
ft->ft_num_entries);
Expand Down

0 comments on commit 3e492d8

Please sign in to comment.