#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>#include "machine.h"#include "misc.h"#include "net.h"Go to the source code of this file.
Functions | |
| void | net_debugaddr (void *addr, int type) |
| void | net_generate_unique_mac (struct machine *machine, unsigned char *macbuf) |
| void | send_udp (struct in_addr *addrp, int portnr, unsigned char *packet, size_t len) |
| void net_debugaddr | ( | void * | addr, |
| int | type | ||
| ) |
Definition at line 50 of file net_misc.cc.
References addr, debug, fatal(), NET_ADDR_ETHERNET, NET_ADDR_IPV4, and NET_ADDR_IPV6.
Referenced by net_dumpinfo().
| void net_generate_unique_mac | ( | struct machine * | machine, |
| unsigned char * | macbuf | ||
| ) |
Definition at line 88 of file net_misc.cc.
References fatal(), MACHINE_SGI, machine::machine_type, machine::nr_of_nics, and machine::serial_nr.
Referenced by dev_le_init(), DEVINIT(), MACHINE_SETUP(), and yamon_machine_setup().
| void send_udp | ( | struct in_addr * | addrp, |
| int | portnr, | ||
| unsigned char * | packet, | ||
| size_t | len | ||
| ) |
Definition at line 125 of file net_misc.cc.
Referenced by net_ethernet_tx().
1.8.17