Changeset daa8db7 in rtems


Ignore:
Timestamp:
Sep 15, 2003, 2:39:41 PM (16 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Children:
6d1bb5f6
Parents:
cf9ebac
Message:

2003-09-15 Jay Monkman <jtm@…>

PR 481/networking

  • net/ethernet.h, net/if_arp.h, netinet/if_ether.h: Network structs should be packed
Location:
cpukit/libnetworking
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/ChangeLog

    rcf9ebac rdaa8db7  
     12003-09-15      Jay Monkman <jtm@smothsmothie.com>
     2
     3        PR 481/networking
     4        * net/ethernet.h, net/if_arp.h, netinet/if_ether.h: Network structs
     5        should be packed
     6
    172003-09-15      Jay Monkman <jtm@smoothsmoothie.com>
    28
  • cpukit/libnetworking/net/ethernet.h

    rcf9ebac rdaa8db7  
    88#ifndef _NET_ETHERNET_H_
    99#define _NET_ETHERNET_H_
     10
     11#include <netinet/in.h>
    1012
    1113/*
     
    5153        u_char  ether_dhost[ETHER_ADDR_LEN];
    5254        u_char  ether_shost[ETHER_ADDR_LEN];
    53         u_short ether_type;
     55        u_short ether_type BYTE_PACK;
    5456};
    5557
  • cpukit/libnetworking/net/if_arp.h

    rcf9ebac rdaa8db7  
    3838#define _NET_IF_ARP_H_
    3939
     40#include <netinet/in.h>
    4041/*
    4142 * Address Resolution Protocol.
     
    4950 */
    5051struct  arphdr {
    51         u_short ar_hrd;         /* format of hardware address */
     52        u_short ar_hrd BYTE_PACK;               /* format of hardware address */
    5253#define ARPHRD_ETHER    1       /* ethernet hardware format */
    5354#define ARPHRD_FRELAY   15      /* frame relay hardware format */
    54         u_short ar_pro;         /* format of protocol address */
    55         u_char  ar_hln;         /* length of hardware address */
    56         u_char  ar_pln;         /* length of protocol address */
    57         u_short ar_op;          /* one of: */
     55        u_short ar_pro BYTE_PACK;               /* format of protocol address */
     56        u_char  ar_hln BYTE_PACK;               /* length of hardware address */
     57        u_char  ar_pln BYTE_PACK;               /* length of protocol address */
     58        u_short ar_op BYTE_PACK;                /* one of: */
    5859#define ARPOP_REQUEST   1       /* request to resolve address */
    5960#define ARPOP_REPLY     2       /* response to previous request */
  • cpukit/libnetworking/netinet/if_ether.h

    rcf9ebac rdaa8db7  
    3838#define _NETINET_IF_ETHER_H_
    3939
     40#include <netinet/in.h>
    4041#include <net/ethernet.h>
    4142
     
    8384 */
    8485struct  ether_arp {
    85         struct  arphdr ea_hdr;  /* fixed-size header */
     86        struct  arphdr ea_hdr BYTE_PACK;        /* fixed-size header */
    8687        u_char  arp_sha[ETHER_ADDR_LEN];        /* sender hardware address */
    8788        u_char  arp_spa[4];     /* sender protocol address */
Note: See TracChangeset for help on using the changeset viewer.