[SERVER-15322] mongosniff erroneously displays the same string for source and destination IP addresses Created: 19/Sep/14 Updated: 06/Feb/15 Resolved: 15/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 2.6.3 |
| Fix Version/s: | 3.0.0-rc6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Juan Berner | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Steps To Reproduce: | As far as I know this happens every time you use it, I cloned from master with: git clone https://github.com/mongodb/mongo.git and built it with scons |
| Participants: |
| Description |
|
I had these types of messages from mongosniff:
There the source and destination ip are the same due to a bug in the output. I have proposed this pull request https://github.com/mongodb/mongo/pull/782 Thanks! |
| Comments |
| Comment by Githook User [ 15/Jan/15 ] | |||||||
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: | |||||||
| Comment by Benety Goh [ 22/Sep/14 ] | |||||||
|
According to the Linux man page for inet_ntoa,
The underlying issue is caused by the log output stream referring to the same internal buffer used by inet_ntoa to render both the source and destination IP. sniffer.cpp:
| |||||||
| Comment by Ramon Fernandez Marina [ 22/Sep/14 ] | |||||||
|
89berner, in order to evaluate your pull request you need to sign the contributor's aggreement. Also, please check the pull request as we also need an answer to benety.goh's question (i.e.: desired output of this change). Thanks, |