/seL4-camkes-master/projects/picotcp/modules/ |
H A D | pico_dev_tap_windows.h | 12 struct pico_device *pico_tap_create(char *name, uint8_t *mac);
|
H A D | pico_dev_pcap.h | 15 struct pico_device *pico_pcap_create_live(char *ifname, char *name, uint8_t *mac); 16 struct pico_device *pico_pcap_create_fromfile(char *filename, char *name, uint8_t *mac);
|
H A D | pico_dev_ipc.h | 12 struct pico_device *pico_ipc_create(const char *sock_path, const char *name, const uint8_t *mac);
|
H A D | pico_dev_vde.h | 14 struct pico_device *pico_vde_create(char *sock, char *name, uint8_t *mac);
|
H A D | pico_dev_pcap.c | 56 static struct pico_device *pico_pcap_create(char *if_file_name, char *name, uint8_t *mac, int mode) argument 63 if( 0 != pico_device_init((struct pico_device *)pcap, name, mac)) { 88 struct pico_device *pico_pcap_create_fromfile(char *filename, char *name, uint8_t *mac) argument 90 return pico_pcap_create(filename, name, mac, PICO_PCAP_MODE_STORED); 93 struct pico_device *pico_pcap_create_live(char *ifname, char *name, uint8_t *mac) argument 95 return pico_pcap_create(ifname, name, mac, PICO_PCAP_MODE_LIVE);
|
H A D | pico_dev_mock.c | 194 struct mock_device *pico_mock_create(uint8_t*mac) 207 if(mac != NULL) { 208 mock->mac = PICO_ZALLOC(6 * sizeof(uint8_t)); 209 if(!mock->mac) { 215 memcpy(mock->mac, mac, 6); 218 if( 0 != pico_device_init((struct pico_device *)mock->dev, "mock", mac)) { 221 if(mock->mac != NULL) 222 PICO_FREE(mock->mac); 234 if (mock->mac ! [all...] |
H A D | pico_dev_mock.h | 27 uint8_t*mac; member in struct:mock_device 34 struct mock_device *pico_mock_create(uint8_t*mac);
|
H A D | pico_dev_tap.c | 121 static int tap_get_mac(char *name, uint8_t *mac) argument 140 memcpy (mac, ð.ifr_hwaddr.sa_data, 6); 149 static int tap_get_mac(char *name, uint8_t *mac) argument 163 memcpy(mac, LLADDR(sdl), 6); 178 uint8_t mac[6] = {}; local 202 /* Host's mac address is generated * by the host kernel and is 205 if (tap_get_mac(name, mac) < 0) { 206 dbg("Tap mac query failed.\n"); 212 * app using the tap device must have a different mac address. 216 mac[ [all...] |
H A D | pico_arp.h | 32 void pico_arp_register_ipconflict(struct pico_ip4 *ip, struct pico_eth *mac, void (*cb)(int reason));
|
H A D | pico_arp.c | 91 struct pico_eth mac; member in struct:arp_service_ipconflict 206 return &l->dev->eth->mac; 216 a4 = pico_arp_lookup(where); /* check if dst ip mac in cache */ 249 arp_dbg("ARP to %08x, mac: %02x:%02x:%02x:%02x:%02x:%02x\n", a->ipv4.addr, a->eth.addr[0], a->eth.addr[1], a->eth.addr[2], a->eth.addr[3], a->eth.addr[4], a->eth.addr[5] ); 318 (memcmp(hdr->s_mac, conflict_ipv4.mac.addr, PICO_SIZE_ETH) != 0)) 346 /* Update mac address */ 378 /* The source mac address must not be a multicast or broadcast address */ 397 memcpy(hdr->s_mac, f->dev->eth->mac.addr, PICO_SIZE_ETH); 403 memcpy(eh->saddr, f->dev->eth->mac.addr, PICO_SIZE_ETH); 488 memcpy(ah->s_mac, dev->eth->mac 559 pico_arp_register_ipconflict(struct pico_ip4 *ip, struct pico_eth *mac, void (*cb)(int reason)) argument [all...] |
H A D | pico_dev_ipc.c | 81 struct pico_device *pico_ipc_create(const char *sock_path, const char *name, const uint8_t *mac) argument 90 if( 0 != pico_device_init((struct pico_device *)ipc, name, mac)) {
|
/seL4-camkes-master/projects/global-components/components/PicoServer/src/ |
H A D | eth_interface.c | 27 static void low_level_init(uint8_t *mac, int *mtu) argument 30 ethdriver_mac(&mac[0], &mac[1], &mac[2], &mac[3], &mac[4], &mac[5]); 88 uint8_t mac[6] = {0}; local 89 low_level_init(mac, &pico_driver->mtu); 90 if (pico_device_init(pico_driver, "eth0", mac) ! [all...] |
/seL4-camkes-master/projects/global-components/templates/ |
H A D | seL4Ethdriver-to.template.c | 30 /*- set mac = configuration[c.instance.name].get("%s_mac" % c.interface.name) -*/ 34 /*- do macs.append( (badge, mac) ) -*/ 53 /*- for badge,mac in macs -*/ 55 /*- if mac != None -*/ 67 void /*? me.interface.name ?*/_get_mac(unsigned int badge, uint8_t *mac) { argument 70 /*- for badge,mac in macs -*/ 71 /*- if mac == None -*/ 76 /*- for num in mac -*/ 80 memcpy(mac, temp, sizeof(temp));
|
/seL4-camkes-master/projects/util_libs/libethdrivers/src/plat/imx6/ |
H A D | ocotp_ctrl.h | 22 int ocotp_get_mac(struct ocotp* ocotp, unsigned char *mac);
|
H A D | ocotp_ctrl.c | 183 int ocotp_get_mac(struct ocotp *ocotp, unsigned char *mac) argument 194 mac[0] = (mac1 >> 8) & 0xff; 195 mac[1] = (mac1 >> 0) & 0xff; 197 mac[2] = (mac0 >> 24) & 0xff; 198 mac[3] = (mac0 >> 16) & 0xff; 199 mac[4] = (mac0 >> 8) & 0xff; 200 mac[5] = (mac0 >> 0) & 0xff;
|
H A D | enet.h | 58 void enet_set_mac(struct enet* enet, unsigned char* mac); 59 void enet_get_mac(struct enet* enet, unsigned char* mac);
|
/seL4-camkes-master/projects/picotcp/include/ |
H A D | pico_device.h | 18 struct pico_eth mac; member in struct:pico_ethdev 44 int pico_device_init(struct pico_device *dev, const char *name, const uint8_t *mac);
|
/seL4-camkes-master/projects/projects_libs/libvswitch/include/ |
H A D | vswitch.h | 101 * @param guest_macaddr A pointer to a mac address for the Guest VM being 113 /** Checks to see if a destination with the MAC address "mac" has been registered with 117 * @param mac Mac address of the destination to be looked up. 122 struct ether_addr *mac); 135 struct ether_addr *mac) 137 int idx = vswitch_get_destnode_index_by_macaddr(lib, mac); 134 vswitch_get_destnode_by_macaddr(vswitch_t *lib, struct ether_addr *mac) argument
|
/seL4-camkes-master/projects/global-components/remote-drivers/picotcp-ethernet-async/ |
H A D | client.c | 54 /* mac address for this client */ 55 uint8_t mac[6]; member in struct:state 269 uint8_t mac[6] = {0}; local 270 get_mac(&mac[0], &mac[1], &mac[2], &mac[3], &mac[4], &mac[5]); 273 if (pico_device_init(&data->pico_dev, "eth0", mac) ! [all...] |
/seL4-camkes-master/projects/picotcp/stack/ |
H A D | pico_device.c | 73 static int pico_6lowpan_store_info(struct pico_device *dev, const uint8_t *mac) argument 76 memcpy(dev->eth, mac, sizeof(struct pico_6lowpan_info)); 111 newaddr.addr[8] = (dev->eth->mac.addr[0] ^ 0x02); 112 newaddr.addr[9] = dev->eth->mac.addr[1]; 113 newaddr.addr[10] = dev->eth->mac.addr[2]; 116 newaddr.addr[13] = dev->eth->mac.addr[3]; 117 newaddr.addr[14] = dev->eth->mac.addr[4]; 118 newaddr.addr[15] = dev->eth->mac.addr[5]; 127 static int device_init_mac(struct pico_device *dev, const uint8_t *mac) argument 136 if (pico_6lowpan_store_info(dev, mac)) 210 pico_device_init(struct pico_device *dev, const char *name, const uint8_t *mac) argument [all...] |
/seL4-camkes-master/projects/util_libs/libethdrivers/include/ethdrivers/ |
H A D | raw.h | 57 * @param mac Pointer to 6 byte array to fill in HW mac address 60 typedef void (*ethif_low_level_init_t)(struct eth_driver *driver, uint8_t *mac, int *mtu); 129 * @param mac Pointer to 6 byte array to be filled in device MAC address 131 typedef void (*ethif_get_mac)(struct eth_driver *driver, uint8_t *mac);
|
/seL4-camkes-master/projects/util_libs/libethdrivers/src/ |
H A D | debug.h | 100 static inline void print_mac(uint8_t* mac){ argument 102 printf("%02x", *mac++); 104 printf(":%02x", *mac++);
|
/seL4-camkes-master/projects/global-components/components/Ethdriver/src/ |
H A D | ethdriver.c | 94 /* mac address for this client */ 95 uint8_t mac[6]; member in struct:client 120 void client_get_mac(unsigned int client_id, uint8_t *mac); 150 if (memcmp(clients[i].mac, buf, 6) == 0) { 334 ((char *)(tx_buf->buf.buf + 6))[i] = ((char *)client->mac)[i]; 360 *b1 = client->mac[0]; 361 *b2 = client->mac[1]; 362 *b3 = client->mac[2]; 363 *b4 = client->mac[3]; 364 *b5 = client->mac[ [all...] |
/seL4-camkes-master/projects/picotcp/rules/ |
H A D | 6lowpan.mk | 10 # Disable MAC framing for mac-enabled radios, disabled by default 35 # IEEE802.15.4 with or without mac layer
|
/seL4-camkes-master/projects/projects_libs/libvswitch/src/ |
H A D | vswitch.c | 83 struct ether_addr *mac) 86 if (mac802_addr_eq((void *)&lib->nodes[i].addr, mac)) { 97 /* If the index requested is has a NULL mac addr in it, return 82 vswitch_get_destnode_index_by_macaddr(vswitch_t *lib, struct ether_addr *mac) argument
|