Dear Steve, 

Thanks a lot for your quick response. 
Would you tell me from what saddr fields that you get the port number value ‘779’?

This might indicate my code to extract the field might be wrong. Would you also inform me what is the correct way to decode saddr string?

Thanks again!

Regards, Kangkook


On Mar 30, 2016, at 7:29 PM, Steve Grubb <sgrubb@redhat.com> wrote:

On Tuesday, March 29, 2016 11:19:24 PM Kangkook Jee wrote:
If I understood correctly, connect() should return error when sin_port field
is set with '0'. Would anyone explain this to me or help me with fix this
problem?

I get 779 as the port from your event.

-Steve