Changeset fd65489 in rtems
- Timestamp:
- 05/27/05 15:21:48 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ef73cf30
- Parents:
- a8d7bab3
- Location:
- cpukit/libnetworking/netinet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libnetworking/netinet/if_ether.h
ra8d7bab3 rfd65489 41 41 #include <net/if_arp.h> 42 42 43 #ifndef BYTE_PACK44 #define BYTE_PACK __attribute__((packed))45 #endif46 47 43 #ifdef _KERNEL 48 44 /* … … 72 68 */ 73 69 struct ether_arp { 74 struct arphdr ea_hdr BYTE_PACK;/* fixed-size header */70 struct arphdr ea_hdr; /* fixed-size header */ 75 71 u_char arp_sha[ETHER_ADDR_LEN]; /* sender hardware address */ 76 72 u_char arp_spa[4]; /* sender protocol address */ … … 83 79 #define arp_pln ea_hdr.ar_pln 84 80 #define arp_op ea_hdr.ar_op 85 86 81 87 82 struct sockaddr_inarp { -
cpukit/libnetworking/netinet/ip_var.h
ra8d7bab3 rfd65489 37 37 #ifndef _NETINET_IP_VAR_H_ 38 38 #define _NETINET_IP_VAR_H_ 39 40 #ifndef BYTE_PACK41 #define BYTE_PACK __attribute__((packed))42 #endif43 39 44 40 /* … … 91 87 * to avoid destroying tos; 92 88 * copied from (ip_off&IP_MF) */ 93 u_short ip_len BYTE_PACK;94 u_short ip_id BYTE_PACK;95 u_short ip_off BYTE_PACK;89 u_short ip_len; 90 u_short ip_id; 91 u_short ip_off; 96 92 u_char ip_ttl; 97 93 u_char ip_p; 98 u_short ip_sum BYTE_PACK;94 u_short ip_sum; 99 95 struct ipasfrag *ipf_next; /* next fragment */ 100 96 struct ipasfrag *ipf_prev; /* previous fragment */ … … 163 159 #define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */ 164 160 161 struct ip; 165 162 struct inpcb; 166 163 struct route; 164 struct sockopt; 165 struct mbuf; 167 166 168 167 extern struct ipstat ipstat;
Note: See TracChangeset
for help on using the changeset viewer.