12.07.2015 Views

Généralités sur les systèmes d'exploitation - Site personnel de ...

Généralités sur les systèmes d'exploitation - Site personnel de ...

Généralités sur les systèmes d'exploitation - Site personnel de ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

program no_version protocole no_port100000 2 tcp 111 rpcbind100000 2 udp 111 rpcbind100024 1 udp 960 status100024 1 tcp 962 status100011 1 udp 972 rquotad100011 2 udp 972 rquotad100005 1 udp 982 mountd100005 1 tcp 984 mountd100005 2 udp 987 mountd100005 2 tcp 989 mountd100005 3 udp 992 mountd100005 3 tcp 994 mountd100003 2 udp 2049 nfs100021 1 udp 1024 nlockmgr100021 3 udp 1024 nlockmgr100021 1 tcp 1024 nlockmgr100021 3 tcp 1024 nlockmgrLO14 : Université Technologique <strong>de</strong> TroyesLe lancement d'un serveur RPC modifie ce fichier <strong>de</strong> la façon suivante :program no_version protocole no_port100000 2 tcp 111 rpcbind100000 2 udp 111 rpcbind100024 1 udp 960 status100024 1 tcp 962 status100011 1 udp 972 rquotad100011 2 udp 972 rquotad100005 1 udp 982 mountd100005 1 tcp 984 mountd100005 2 udp 987 mountd100005 2 tcp 989 mountd100005 3 udp 992 mountd100005 3 tcp 994 mountd100003 2 udp 2049 nfs100021 1 udp 1024 nlockmgr100021 3 udp 1024 nlockmgr100021 1 tcp 1024 nlockmgr100021 3 tcp 1024 nlockmgr536870913 1 udp 1026536870913 1 tcp 1038D'où vient le numéro 536870913 ? Le fichier .x correspondant à ce serveur RPC avait le squelette suivant :program ADDSERV {version ADDSERV_v1 {void truc(int nb1, int nb2) = 1;} = 1;}=0x20000001;Or 0x20000001 = 5368709136°) L'huissier : "portmapper ou rpcbind process"Son démarrage se fait par la comman<strong>de</strong> /sbin/portmapL'huissier permet <strong>de</strong> rediriger un client vers le numéro <strong>de</strong> port hébergeant le service.L'huissier est <strong>sur</strong> un numéro <strong>de</strong> port réservé : 111Les clients n'ont besoin <strong>de</strong> connaître que ce seul numéro <strong>de</strong> portLes fonctions <strong>de</strong> l'interface <strong>de</strong> programmation :- pmap_set() = 1 : enregistre un service- pmap_unset() = 2 : désabonne un service- pmap_getport() = 3 : retourne le numéro <strong>de</strong> port associé au service- pmap_getmaps() = 4 : liste <strong>les</strong> services présents- pmap_rmtcall() = 5 : appel d'une procédure distanteIV) Interopérabilité et partages <strong>de</strong> fichiers51 /98 S. Moutou : Cours

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!