Compare commits
30 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
c01088cad0 | 13 years ago |
![]() |
0ba319a247 | 13 years ago |
![]() |
c5511821e5 | 13 years ago |
![]() |
4d21e3ee97 | 13 years ago |
![]() |
52583dbb14 | 13 years ago |
![]() |
f6b0157234 | 13 years ago |
![]() |
bcd6129f14 | 13 years ago |
![]() |
02768432e3 | 13 years ago |
![]() |
f96424f56f | 13 years ago |
![]() |
5b4be4bafd | 13 years ago |
![]() |
454429bc7c | 13 years ago |
![]() |
7d5787d95c | 13 years ago |
![]() |
1fbfd638ad | 13 years ago |
![]() |
7fec902a6f | 13 years ago |
![]() |
785751e7f3 | 13 years ago |
![]() |
c3859e978c | 13 years ago |
![]() |
dc3fef8d25 | 13 years ago |
![]() |
0256c1b0cc | 13 years ago |
![]() |
6c3a08411d | 13 years ago |
![]() |
b3bd2dd87a | 13 years ago |
![]() |
9862563c8d | 13 years ago |
![]() |
c8bee3189e | 13 years ago |
![]() |
689f7e85cf | 13 years ago |
![]() |
de81aff9d9 | 14 years ago |
![]() |
e9f935be04 | 14 years ago |
![]() |
61fdb0e510 | 14 years ago |
![]() |
68fba106a2 | 14 years ago |
![]() |
28bb718b6f | 14 years ago |
![]() |
496fc57007 | 14 years ago |
![]() |
c2b15cf5a6 | 14 years ago |
18 changed files with 335 additions and 45 deletions
@ -0,0 +1,30 @@
|
||||
--- a/extra/scripts/unifdef.c
|
||||
+++ b/extra/scripts/unifdef.c
|
||||
@@ -206,7 +206,7 @@
|
||||
static void error(const char *);
|
||||
static int findsym(const char *);
|
||||
static void flushline(bool);
|
||||
-static Linetype getline(void);
|
||||
+static Linetype get_line(void);
|
||||
static Linetype ifeval(const char **);
|
||||
static void ignoreoff(void);
|
||||
static void ignoreon(void);
|
||||
@@ -512,7 +512,7 @@
|
||||
|
||||
for (;;) {
|
||||
linenum++;
|
||||
- lineval = getline();
|
||||
+ lineval = get_line();
|
||||
trans_table[ifstate[depth]][lineval]();
|
||||
debug("process %s -> %s depth %d",
|
||||
linetype_name[lineval],
|
||||
@@ -526,7 +526,7 @@
|
||||
* help from skipcomment().
|
||||
*/
|
||||
static Linetype
|
||||
-getline(void)
|
||||
+get_line(void)
|
||||
{
|
||||
const char *cp;
|
||||
int cursym;
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -Narup uClibc-0.9.30.1.orig/libc/inet/getaddrinfo.c uClibc-0.9.30.1/libc/inet/getaddrinfo.c
|
||||
--- uClibc-0.9.30.1.orig/libc/inet/getaddrinfo.c 2009-02-26 21:49:14.000000000 +0900
|
||||
+++ uClibc-0.9.30.1/libc/inet/getaddrinfo.c 2009-03-06 00:59:23.000000000 +0900
|
||||
@@ -187,6 +187,8 @@ static unsigned __check_pf(void)
|
||||
}
|
||||
|
||||
for (runp = ifa; runp != NULL; runp = runp->ifa_next) {
|
||||
+ if (runp->ifa_addr == NULL)
|
||||
+ continue;
|
||||
#if defined __UCLIBC_HAS_IPV4__
|
||||
if (runp->ifa_addr->sa_family == PF_INET)
|
||||
seen |= SEEN_IPV4;
|
@ -0,0 +1,224 @@
|
||||
diff -urN uClibc-0.9.30.1.orig/include/netinet/igmp.h uClibc-0.9.30.1/include/netinet/igmp.h
|
||||
--- uClibc-0.9.30.1.orig/include/netinet/igmp.h 2009-04-08 09:00:10.926545132 +0200
|
||||
+++ uClibc-0.9.30.1/include/netinet/igmp.h 2009-04-08 09:00:26.242514273 +0200
|
||||
@@ -69,7 +69,7 @@
|
||||
u_int8_t igmp_code; /* routing code */
|
||||
u_int16_t igmp_cksum; /* checksum */
|
||||
struct in_addr igmp_group; /* group address */
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
#define IGMP_MINLEN 8
|
||||
|
||||
diff -urN uClibc-0.9.30.1.orig/include/netinet/in.h uClibc-0.9.30.1/include/netinet/in.h
|
||||
--- uClibc-0.9.30.1.orig/include/netinet/in.h 2009-04-08 09:00:10.926545132 +0200
|
||||
+++ uClibc-0.9.30.1/include/netinet/in.h 2009-04-08 09:00:26.242514273 +0200
|
||||
@@ -202,7 +202,7 @@
|
||||
#define s6_addr in6_u.u6_addr8
|
||||
#define s6_addr16 in6_u.u6_addr16
|
||||
#define s6_addr32 in6_u.u6_addr32
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
extern const struct in6_addr in6addr_any; /* :: */
|
||||
extern const struct in6_addr in6addr_loopback; /* ::1 */
|
||||
@@ -229,7 +229,7 @@
|
||||
__SOCKADDR_COMMON_SIZE -
|
||||
sizeof (in_port_t) -
|
||||
sizeof (struct in_addr)];
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
#endif
|
||||
|
||||
/* Ditto, for IPv6. */
|
||||
@@ -240,7 +240,7 @@
|
||||
uint32_t sin6_flowinfo; /* IPv6 flow information */
|
||||
struct in6_addr sin6_addr; /* IPv6 address */
|
||||
uint32_t sin6_scope_id; /* IPv6 scope-id */
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
|
||||
/* IPv4 multicast request. */
|
||||
@@ -251,7 +251,7 @@
|
||||
|
||||
/* Local IP address of interface. */
|
||||
struct in_addr imr_interface;
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
struct ip_mreq_source
|
||||
{
|
||||
@@ -263,7 +263,7 @@
|
||||
|
||||
/* IP address of interface. */
|
||||
struct in_addr imr_sourceaddr;
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
/* Likewise, for IPv6. */
|
||||
struct ipv6_mreq
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
/* local interface */
|
||||
unsigned int ipv6mr_interface;
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
|
||||
/* Multicast group request. */
|
||||
@@ -284,7 +284,7 @@
|
||||
|
||||
/* Group address. */
|
||||
struct sockaddr_storage gr_group;
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
struct group_source_req
|
||||
{
|
||||
@@ -296,7 +296,7 @@
|
||||
|
||||
/* Source address. */
|
||||
struct sockaddr_storage gsr_source;
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
|
||||
/* Full-state filter operations. */
|
||||
@@ -315,7 +315,7 @@
|
||||
uint32_t imsf_numsrc;
|
||||
/* Source addresses. */
|
||||
struct in_addr imsf_slist[1];
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
#define IP_MSFILTER_SIZE(numsrc) (sizeof (struct ip_msfilter) \
|
||||
- sizeof (struct in_addr) \
|
||||
@@ -336,7 +336,7 @@
|
||||
uint32_t gf_numsrc;
|
||||
/* Source addresses. */
|
||||
struct sockaddr_storage gf_slist[1];
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
#define GROUP_FILTER_SIZE(numsrc) (sizeof (struct group_filter) \
|
||||
- sizeof (struct sockaddr_storage) \
|
||||
@@ -460,14 +460,14 @@
|
||||
{
|
||||
struct in6_addr ipi6_addr; /* src/dst IPv6 address */
|
||||
unsigned int ipi6_ifindex; /* send/recv interface index */
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
/* IPv6 MTU information. */
|
||||
struct ip6_mtuinfo
|
||||
{
|
||||
struct sockaddr_in6 ip6m_addr; /* dst address including zone ID */
|
||||
uint32_t ip6m_mtu; /* path MTU in host byte order */
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
|
||||
#if 0 /*def __USE_GNU*/
|
||||
diff -urN uClibc-0.9.30.1.orig/include/netinet/ip.h uClibc-0.9.30.1/include/netinet/ip.h
|
||||
--- uClibc-0.9.30.1.orig/include/netinet/ip.h 2009-04-08 09:00:10.926545132 +0200
|
||||
+++ uClibc-0.9.30.1/include/netinet/ip.h 2009-04-08 09:00:26.242514273 +0200
|
||||
@@ -63,7 +63,7 @@
|
||||
u_int32_t saddr;
|
||||
u_int32_t daddr;
|
||||
/*The options start here. */
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
#ifdef __USE_BSD
|
||||
/*
|
||||
@@ -127,7 +127,7 @@
|
||||
u_int8_t ip_p; /* protocol */
|
||||
u_short ip_sum; /* checksum */
|
||||
struct in_addr ip_src, ip_dst; /* source and dest address */
|
||||
- };
|
||||
+ } __attribute__ ((__packed__));
|
||||
|
||||
/*
|
||||
* Time stamp option structure.
|
||||
diff -urN uClibc-0.9.30.1.orig/include/netinet/ip_icmp.h uClibc-0.9.30.1/include/netinet/ip_icmp.h
|
||||
--- uClibc-0.9.30.1.orig/include/netinet/ip_icmp.h 2009-04-08 09:00:10.926545132 +0200
|
||||
+++ uClibc-0.9.30.1/include/netinet/ip_icmp.h 2009-04-08 09:00:26.242514273 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
u_int16_t mtu;
|
||||
} frag; /* path mtu discovery */
|
||||
} un;
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
#define ICMP_ECHOREPLY 0 /* Echo Reply */
|
||||
#define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
|
||||
@@ -199,7 +199,7 @@
|
||||
#define icmp_radv icmp_dun.id_radv
|
||||
#define icmp_mask icmp_dun.id_mask
|
||||
#define icmp_data icmp_dun.id_data
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
/*
|
||||
* Lower bounds on packet lengths for various types.
|
||||
diff -urN uClibc-0.9.30.1.orig/include/netinet/tcp.h uClibc-0.9.30.1/include/netinet/tcp.h
|
||||
--- uClibc-0.9.30.1.orig/include/netinet/tcp.h 2009-04-08 09:00:10.926545132 +0200
|
||||
+++ uClibc-0.9.30.1/include/netinet/tcp.h 2009-04-08 09:00:26.242514273 +0200
|
||||
@@ -86,7 +86,7 @@
|
||||
u_int16_t th_win; /* window */
|
||||
u_int16_t th_sum; /* checksum */
|
||||
u_int16_t th_urp; /* urgent pointer */
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
# else /* !__FAVOR_BSD */
|
||||
struct tcphdr
|
||||
@@ -121,7 +121,7 @@
|
||||
u_int16_t window;
|
||||
u_int16_t check;
|
||||
u_int16_t urg_ptr;
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
# endif /* __FAVOR_BSD */
|
||||
|
||||
enum
|
||||
@@ -226,7 +226,7 @@
|
||||
u_int32_t tcpi_rcv_space;
|
||||
|
||||
u_int32_t tcpi_total_retrans;
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
|
||||
/* For TCP_MD5SIG socket option. */
|
||||
@@ -239,7 +239,7 @@
|
||||
u_int16_t tcpm_keylen; /* Key length. */
|
||||
u_int32_t __tcpm_pad2; /* Zero. */
|
||||
u_int8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* Key (binary). */
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
#endif /* Misc. */
|
||||
|
||||
diff -urN uClibc-0.9.30.1.orig/include/netinet/udp.h uClibc-0.9.30.1/include/netinet/udp.h
|
||||
--- uClibc-0.9.30.1.orig/include/netinet/udp.h 2009-04-08 09:00:10.926545132 +0200
|
||||
+++ uClibc-0.9.30.1/include/netinet/udp.h 2009-04-08 09:00:26.242514273 +0200
|
||||
@@ -61,7 +61,7 @@
|
||||
u_int16_t uh_dport; /* destination port */
|
||||
u_int16_t uh_ulen; /* udp length */
|
||||
u_int16_t uh_sum; /* udp checksum */
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
|
||||
#else
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
u_int16_t dest;
|
||||
u_int16_t len;
|
||||
u_int16_t check;
|
||||
-};
|
||||
+} __attribute__ ((__packed__));
|
||||
#endif
|
||||
|
||||
#define SOL_UDP 17 /* sockopt level for UDP */
|
Loading…
Reference in new issue