Changeset 87e5658c in mainline for uspace/srv/ethip/ethip.h


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

Prototype ARP responder.

File:
1 edited

Legend:

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

    r081971b r87e5658c  
    7474} eth_frame_t;
    7575
     76/** ARP opcode */
     77typedef enum {
     78        /** Request */
     79        aop_request,
     80        /** Reply */
     81        aop_reply
     82} arp_opcode_t;
     83
     84/** ARP packet (for 48-bit MAC addresses and IPv4)
     85 *
     86 * Internal representation
     87 */
     88typedef struct {
     89        /** Opcode */
     90        arp_opcode_t opcode;
     91        /** Sender hardware address */
     92        mac48_addr_t sender_hw_addr;
     93        /** Sender protocol address */
     94        iplink_srv_addr_t sender_proto_addr;
     95        /** Target hardware address */
     96        mac48_addr_t target_hw_addr;
     97        /** Target protocol address */
     98        iplink_srv_addr_t target_proto_addr;
     99} arp_eth_packet_t;
     100
    76101extern int ethip_iplink_init(ethip_nic_t *);
    77102extern int ethip_received(iplink_srv_t *, void *, size_t);
    78 
    79103
    80104#endif
Note: See TracChangeset for help on using the changeset viewer.