net_misc.cc File Reference

Back to the index.

Functions
net_misc.cc File Reference
#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)
 

Function Documentation

◆ net_debugaddr()

void net_debugaddr ( void *  addr,
int  type 
)

Definition at line 50 of file net_misc.cc.

References debug, fatal(), NET_ADDR_ETHERNET, NET_ADDR_IPV4, and NET_ADDR_IPV6.

Referenced by net_dumpinfo().

◆ net_generate_unique_mac()

void net_generate_unique_mac ( struct machine machine,
unsigned char *  macbuf 
)

Definition at line 88 of file net_misc.cc.

References fatal(), machine::nr_of_nics, and machine::serial_nr.

Referenced by dev_le_init(), DEVINIT(), MACHINE_SETUP(), and yamon_machine_setup().

◆ send_udp()

void send_udp ( struct in_addr *  addrp,
int  portnr,
unsigned char *  packet,
size_t  len 
)

Definition at line 124 of file net_misc.cc.

Referenced by net_ethernet_tx().


Generated on Sun Sep 30 2018 16:05:18 for GXemul by doxygen 1.8.13