Re: [Patch 3/3] net: reserve ports for applications using fixed port numbers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cong Wang
Date: Sunday, April 11, 2010 - 11:52 pm

Tetsuo Handa wrote:

Hmm, good catch! I think it is correct.




Yeah, how about:

	int tries = 10;
	...
again:
	...
	if (inet_is_reserved_local_port(next_port)) {
		if (tries--)
			goto again;
		else
			return -EBUSY;
	}

?



Sorry, doesn't 'continue' jump to exactly where 'next_nolock' is??
Or I am missing something?


Thanks for your review!

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch 2/3] sysctl: add proc_do_large_bitmap, Amerigo Wang, (Fri Apr 9, 3:11 am)
Re: [Patch 2/3] sysctl: add proc_do_large_bitmap, Changli Gao, (Fri Apr 9, 3:33 am)
Re: [Patch 2/3] sysctl: add proc_do_large_bitmap, Octavian Purdila, (Fri Apr 9, 5:35 am)
Re: [Patch 1/3] sysctl: refactor integer handling proc code, Octavian Purdila, (Fri Apr 9, 6:40 am)
Re: [Patch 2/3] sysctl: add proc_do_large_bitmap, Cong Wang, (Sun Apr 11, 11:32 pm)
Re: [Patch 3/3] net: reserve ports for applications using ..., Cong Wang, (Sun Apr 11, 11:52 pm)