The services table stores the mapping of services to ports or ports to services as
shown in Figure 59. The mapping information is usually accessed with the
getservbyname() and getservbyport() socket functions.
The protocol table stores the mapping of protocol names to protocol numbers and
protocol numbers to protocol names. Socket applications use getprotobyname() and
getprotobynumber() functions to access this table (Figure 60).
Work with Service Table Entry
System:
SYSNAM03
Type options, press Enter.
1=Add
4=Remove
5=Display
Opt Service
Port Protocol
echo
7 udp
finger
79 tcp
finger
79 udp
ftp-control
21 tcp
ftp-control
21 udp
ftp-data
20 tcp
ftp-data
20 udp
gopher
70 tcp
gopher
70 udp
graphics
41 tcp
graphics
41 udp
pop3
110 tcp
More...
Parameters for options 1 and 4 or command
===>
F3=Exit
F4=Prompt
F5=Refresh
F6=Print list
F9=Retrieve
F12=Can
F17=Top
F18=Bottom
Figure 59. Work with Service Table Entry Display
Work with Protocol Table Entry
System:
SYSNAM03
Type options, press Enter.
1=Add
4=Remove
5=Display
Protocol
Opt
Protocol
number
_
_____________________________
_
icmp
1
_
ip
0
_
tcp
6
_
udp
17
Bottom
Parameters for options 1 and 4 or command
===> ______________________________________________________________________
F3=Exit
F4=Prompt
F5=Refresh
F6=Print list
F9=Retrieve
F12=Cancel
F17=Top
F18=Bottom
Figure 60. Work with Protocol Table Entry Display
66
OS/400 TCP/IP Configuration and Reference V5R1
Summary of Contents for SC41-5420-04
Page 1: ...iSeries TCP IP Configuration and Reference Version 5 SC41 5420 04...
Page 2: ......
Page 3: ...iSeries TCP IP Configuration and Reference Version 5 SC41 5420 04...
Page 8: ...vi OS 400 TCP IP Configuration and Reference V5R1...
Page 10: ...viii OS 400 TCP IP Configuration and Reference V5R1...
Page 12: ...x OS 400 TCP IP Configuration and Reference V5R1...
Page 14: ...xii OS 400 TCP IP Configuration and Reference V5R1...
Page 46: ...32 OS 400 TCP IP Configuration and Reference V5R1...
Page 84: ...70 OS 400 TCP IP Configuration and Reference V5R1...
Page 92: ...78 OS 400 TCP IP Configuration and Reference V5R1...
Page 106: ...92 OS 400 TCP IP Configuration and Reference V5R1...
Page 110: ...96 OS 400 TCP IP Configuration and Reference V5R1...
Page 115: ......