Allow sin_port = 0 for certain applications

Bug #816985 reported by Tomasz Gebarowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
El Jardin
Fix Committed
Medium
Tomasz Gebarowski

Bug Description

In most of the cases sin_port member of struct sockaddr_in should be a non zero value.
There is an exception from that rule for UDP Source Port., see below:

"Normally, the field identifies the sender's port when meaningful and should be assumed to be the port to reply to if needed. If not used, then it should be zero. If the source host is the client, the port number is likely to be an ephemeral port number. If the source host is the server, the port number is likely to be a well-known port number"

Change the jardin_common_new_inet_address to allow sin_port = 0 in certain applications.

Changed in eljardin:
importance: Undecided → Medium
assignee: nobody → Tomasz Gebarowski (tgebarowski)
Revision history for this message
Tomasz Gebarowski (tgebarowski) wrote :
Changed in eljardin:
status: New → Fix Committed
Changed in eljardin:
status: Fix Committed → Fix Released
Revision history for this message
Tomasz Gebarowski (tgebarowski) wrote :

Regression has been introduced.

Changed in eljardin:
status: Fix Released → Confirmed
status: Confirmed → Triaged
status: Triaged → Incomplete
Changed in eljardin:
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.