Changeset 56792a2 in mainline for uspace/srv/ethip/ethip.h


Ignore:
Timestamp:
2012-02-27T19:52:41Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1cc8b42
Parents:
962f03b
Message:

Read MAC address from NIC.

File:
1 edited

Legend:

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

    r962f03b r56792a2  
    4444#include <sys/types.h>
    4545
    46 typedef struct ethip_nic {
    47         link_t nic_list;
    48         service_id_t svc_id;
    49         char *svc_name;
    50         async_sess_t *sess;
    51 
    52         iplink_srv_t iplink;
    53         service_id_t iplink_sid;
    54 
    55         /** List of IP addresses configured on this link */
    56         list_t addr_list; /* of ethip_link_addr_t */
    57 } ethip_nic_t;
    58 
    5946typedef struct {
    6047        link_t addr_list;
     
    6754        uint64_t addr;
    6855} mac48_addr_t;
     56
     57typedef struct ethip_nic {
     58        link_t nic_list;
     59        service_id_t svc_id;
     60        char *svc_name;
     61        async_sess_t *sess;
     62
     63        iplink_srv_t iplink;
     64        service_id_t iplink_sid;
     65
     66        /** MAC address */
     67        mac48_addr_t mac_addr;
     68        /** List of IP addresses configured on this link */
     69        list_t addr_list; /* of ethip_link_addr_t */
     70} ethip_nic_t;
    6971
    7072/** Ethernet frame */
Note: See TracChangeset for help on using the changeset viewer.