How to get first free udp port ?



Hi all!

Is there any syscall, to get first unused udp port on the linux machine ? Something like the port allocated by the system as TCP source port.

Jarek
.



Relevant Pages

  • Small SOHO email setup on Rh7.3
    ... I can telnet into the Linux machine from my Windows ... I cannot telnet to port 25 port from any Windows machine. ...
    (comp.os.linux.misc)
  • Re: Connecting Wireless Router to a Linux-IP-Masquerading based network
    ... > this wireless router seamlessly into my current network. ... > like the Linux machine to be connected directly to the dsl modem and be ... you have to port forward the SSH ports, ...
    (comp.os.linux.networking)
  • Re: some kind of attack. i need some help here!
    ... > i came home today and my linux machine was transmitting a whole ... there was another computer connected to port 1034. ... i'v disabled this account, but is it one of those ... run the package verification for debian and check if the installed files ...
    (comp.os.linux.security)
  • Re: Cannot connect to ultravnc server
    ... > It also shows the VNC Server IP address, the port, a speed ... I've not been able to get it to connect when running the server under ... WINE. ... the linux machine asks for a password. ...
    (Ubuntu)
  • some kind of attack. i need some help here!
    ... i came home today and my linux machine was transmitting a whole ... there was another computer connected to port 1034. ... to netstat) but as soon as it's re-connected the packets flow again! ... i'v disabled this account, but is it one of those ...
    (comp.os.linux.security)