|
iPXE
|
PORTMAPPER protocol. More...
#include <stdint.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <assert.h>#include <errno.h>#include <byteswap.h>#include <ipxe/socket.h>#include <ipxe/tcpip.h>#include <ipxe/in.h>#include <ipxe/iobuf.h>#include <ipxe/xfer.h>#include <ipxe/open.h>#include <ipxe/uri.h>#include <ipxe/features.h>#include <ipxe/timer.h>#include <ipxe/oncrpc.h>#include <ipxe/oncrpc_iob.h>#include <ipxe/portmap.h>Go to the source code of this file.
Macros | |
| #define | PORTMAP_GETPORT 3 |
| PORTMAP GETPORT procedure. More... | |
Functions | |
| int | portmap_getport (struct interface *intf, struct oncrpc_session *session, uint32_t prog, uint32_t vers, uint32_t proto) |
| Send a GETPORT request. More... | |
| int | portmap_get_getport_reply (struct portmap_getport_reply *getport_reply, struct oncrpc_reply *reply) |
| Parse a GETPORT reply. More... | |
PORTMAPPER protocol.
Definition in file portmap.c.
| int portmap_getport | ( | struct interface * | intf, |
| struct oncrpc_session * | session, | ||
| uint32_t | prog, | ||
| uint32_t | vers, | ||
| uint32_t | proto | ||
| ) |
Send a GETPORT request.
| intf | Interface to send the request on |
| session | ONC RPC session |
| prog | ONC RPC program number |
| vers | ONC RPC rogram version number |
| proto | Protocol (TCP or UDP) |
| rc | Return status code |
Definition at line 59 of file portmap.c.
References oncrpc_call(), ONCRPC_FIELD, ONCRPC_FIELD_END, and PORTMAP_GETPORT.
Referenced by nfs_pm_step().
| int portmap_get_getport_reply | ( | struct portmap_getport_reply * | getport_reply, |
| struct oncrpc_reply * | reply | ||
| ) |
Parse a GETPORT reply.
| getport_reply | A structure where the data will be saved |
| reply | The ONC RPC reply to get data from |
| rc | Return status code |
Definition at line 80 of file portmap.c.
References oncrpc_reply::data, EINVAL, oncrpc_iob_get_int, and portmap_getport_reply::port.
Referenced by nfs_pm_deliver().
1.8.15