#include <gpxe/interface.h>
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| void | plug (struct interface *intf, struct interface *dest) |
| Plug an interface into a new destination interface. | |
| void | plug_plug (struct interface *a, struct interface *b) |
| Plug two interfaces together. | |
Definition in file interface.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
Plug an interface into a new destination interface.
| intf | Interface | |
| dest | New destination interface |
Note that there is no "unplug" call; instead you must plug the interface into a null interface.
Definition at line 42 of file interface.c.
References DBGC, and interface::dest.
Referenced by job_plug(), job_unplug(), plug_plug(), resolv_plug(), and resolv_unplug().
00042 { 00043 DBGC ( intf, "INTF %p moving from INTF %p to INTF %p\n", 00044 intf, intf->dest, dest ); 00045 intf_put ( intf->dest ); 00046 intf->dest = intf_get ( dest ); 00047 }
Plug two interfaces together.
| a | Interface A | |
| b | Interface B |
Definition at line 59 of file interface.c.
References plug().
Referenced by job_plug_plug(), and resolv_plug_plug().
1.5.7.1