wiltzius@lll-lcc.aRpA (Dave P. Wiltzius) (06/02/88)
I believe this was discussed here a while back, but I would like to know how daemons (such as TFTPD or FTPD) get their reserved UDP or TCP port (as specified in RFC 1010 if I recall correctly). That is, the port for TFTP is 69 (dex) as per RFC 1010. The TFTP client therefore sends packets to the destination host with UDP port number 69 - which the TFTP daemon on that host should subsequently receive since it listens on UDP port 69. How does it acquire UDP port 69? Directions to appropriate BSD code would be most welcome. Thank you. Dave (wiltzius@lll-lcc.llnl.gov)
bzs@bu-cs.BU.EDU (Barry Shein) (06/02/88)
>How does it acquire UDP port 69? Directions to appropriate >BSD code would be most welcome. > >Thank you. > Dave (wiltzius@lll-lcc.llnl.gov) See the bind and recvfrom manual pages. -Barry Shein, Boston University