Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/ethip/ethip.h

    rd8b47eca r69a93df7  
    4141#include <async.h>
    4242#include <inet/iplink_srv.h>
    43 #include <inet/addr.h>
    4443#include <loc.h>
    4544#include <sys/types.h>
    4645
     46#define MAC48_BROADCAST 0xffffffffffff
     47
    4748typedef struct {
    4849        link_t addr_list;
    49         inet_addr_t addr;
     50        iplink_srv_addr_t addr;
    5051} ethip_link_addr_t;
     52
     53/** IEEE MAC-48 identifier */
     54typedef struct {
     55        /** MAC Address (in lowest 48 bits) */
     56        uint64_t addr;
     57} mac48_addr_t;
    5158
    5259typedef struct ethip_nic {
     
    6067
    6168        /** MAC address */
    62         addr48_t mac_addr;
     69        mac48_addr_t mac_addr;
    6370        /** List of IP addresses configured on this link */
    6471        list_t addr_list; /* of ethip_link_addr_t */
     
    6875typedef struct {
    6976        /** Destination Address */
    70         addr48_t dest;
     77        mac48_addr_t dest;
    7178        /** Source Address */
    72         addr48_t src;
     79        mac48_addr_t src;
    7380        /** Ethertype or Length */
    7481        uint16_t etype_len;
     
    95102        arp_opcode_t opcode;
    96103        /** Sender hardware address */
    97         addr48_t sender_hw_addr;
     104        mac48_addr_t sender_hw_addr;
    98105        /** Sender protocol address */
    99         addr32_t sender_proto_addr;
     106        iplink_srv_addr_t sender_proto_addr;
    100107        /** Target hardware address */
    101         addr48_t target_hw_addr;
     108        mac48_addr_t target_hw_addr;
    102109        /** Target protocol address */
    103         addr32_t target_proto_addr;
     110        iplink_srv_addr_t target_proto_addr;
    104111} arp_eth_packet_t;
    105112
     
    107114typedef struct {
    108115        link_t atrans_list;
    109         addr32_t ip_addr;
    110         addr48_t mac_addr;
     116        iplink_srv_addr_t ip_addr;
     117        mac48_addr_t mac_addr;
    111118} ethip_atrans_t;
    112119
Note: See TracChangeset for help on using the changeset viewer.