Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/net_utils.h
| Show All 28 Lines | |||||
| #ifndef _NET_UTILS_H_ | #ifndef _NET_UTILS_H_ | ||||
| #define _NET_UTILS_H_ | #define _NET_UTILS_H_ | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| #include "pci_emul.h" | #include "pci_emul.h" | ||||
| void net_genmac(struct pci_devinst *pi, uint8_t *macaddr); | void net_genmac(struct pci_devinst *pi, uint8_t *macaddr); | ||||
| int net_parsemac(char *mac_str, uint8_t *mac_addr); | int net_parsemac(const char *mac_str, uint8_t *mac_addr); | ||||
| int net_parsemtu(const char *mtu_str, unsigned long *mtu); | int net_parsemtu(const char *mtu_str, unsigned long *mtu); | ||||
| #endif /* _NET_UTILS_H_ */ | #endif /* _NET_UTILS_H_ */ | ||||