Changeset 03c971f in mainline for uspace/srv/net/ethip/ethip.h


Ignore:
Timestamp:
2013-08-15T14:20:16Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bb2a5b2
Parents:
f2c19b0 (diff), 2921602 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline changes.

File:
1 edited

Legend:

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

    rf2c19b0 r03c971f  
    4141#include <async.h>
    4242#include <inet/iplink_srv.h>
     43#include <inet/addr.h>
    4344#include <loc.h>
    4445#include <sys/types.h>
    4546
    46 #define MAC48_BROADCAST 0xffffffffffff
    47 
    4847typedef struct {
    49         link_t addr_list;
    50         iplink_srv_addr_t addr;
     48        link_t link;
     49        inet_addr_t addr;
    5150} ethip_link_addr_t;
    5251
    53 /** IEEE MAC-48 identifier */
    54 typedef struct {
    55         /** MAC Address (in lowest 48 bits) */
    56         uint64_t addr;
    57 } mac48_addr_t;
    58 
    5952typedef struct ethip_nic {
    60         link_t nic_list;
     53        link_t link;
    6154        service_id_t svc_id;
    6255        char *svc_name;
     
    6760
    6861        /** MAC address */
    69         mac48_addr_t mac_addr;
    70         /** List of IP addresses configured on this link */
    71         list_t addr_list; /* of ethip_link_addr_t */
     62        addr48_t mac_addr;
     63       
     64        /**
     65         * List of IP addresses configured on this link
     66         * (of the type ethip_link_addr_t)
     67         */
     68        list_t addr_list;
    7269} ethip_nic_t;
    7370
     
    7572typedef struct {
    7673        /** Destination Address */
    77         mac48_addr_t dest;
     74        addr48_t dest;
    7875        /** Source Address */
    79         mac48_addr_t src;
     76        addr48_t src;
    8077        /** Ethertype or Length */
    8178        uint16_t etype_len;
     
    10299        arp_opcode_t opcode;
    103100        /** Sender hardware address */
    104         mac48_addr_t sender_hw_addr;
     101        addr48_t sender_hw_addr;
    105102        /** Sender protocol address */
    106         iplink_srv_addr_t sender_proto_addr;
     103        addr32_t sender_proto_addr;
    107104        /** Target hardware address */
    108         mac48_addr_t target_hw_addr;
     105        addr48_t target_hw_addr;
    109106        /** Target protocol address */
    110         iplink_srv_addr_t target_proto_addr;
     107        addr32_t target_proto_addr;
    111108} arp_eth_packet_t;
    112109
     
    114111typedef struct {
    115112        link_t atrans_list;
    116         iplink_srv_addr_t ip_addr;
    117         mac48_addr_t mac_addr;
     113        addr32_t ip_addr;
     114        addr48_t mac_addr;
    118115} ethip_atrans_t;
    119116
Note: See TracChangeset for help on using the changeset viewer.