forked from Imagelibrary/rtems
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/ip_fw.c, libnetworking/netinet/ip_input.c: Misc. 64bit-compatibility fixes.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libnetworking/netinet/ip_fw.c, libnetworking/netinet/ip_input.c:
|
||||||
|
Misc. 64bit-compatibility fixes.
|
||||||
|
|
||||||
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libmisc/shell/print-ls.c, libmisc/shell/main_msdosfmt.c:
|
* libmisc/shell/print-ls.c, libmisc/shell/main_msdosfmt.c:
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, verbose_limit, CTLFLAG_RW, &fw_verbose_lim
|
|||||||
|
|
||||||
#define dprintf(a) if (!fw_debug); else printf a
|
#define dprintf(a) if (!fw_debug); else printf a
|
||||||
|
|
||||||
#define print_ip(a) printf("%ld.%ld.%ld.%ld",(ntohl(a.s_addr)>>24)&0xFF,\
|
#define print_ip(a) printf("%"PRId32".%"PRId32".%"PRId32".%"PRId32,\
|
||||||
|
(ntohl(a.s_addr)>>24)&0xFF,\
|
||||||
(ntohl(a.s_addr)>>16)&0xFF,\
|
(ntohl(a.s_addr)>>16)&0xFF,\
|
||||||
(ntohl(a.s_addr)>>8)&0xFF,\
|
(ntohl(a.s_addr)>>8)&0xFF,\
|
||||||
(ntohl(a.s_addr))&0xFF);
|
(ntohl(a.s_addr))&0xFF);
|
||||||
|
|||||||
@@ -1188,7 +1188,7 @@ ip_srcroute(void)
|
|||||||
*(mtod(m, struct in_addr *)) = *p--;
|
*(mtod(m, struct in_addr *)) = *p--;
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
if (ipprintfs)
|
if (ipprintfs)
|
||||||
printf(" hops %lx", ntohl(mtod(m, struct in_addr *)->s_addr));
|
printf(" hops %"PRIx32, ntohl(mtod(m, struct in_addr *)->s_addr));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1208,7 +1208,7 @@ ip_srcroute(void)
|
|||||||
while (p >= ip_srcrt.route) {
|
while (p >= ip_srcrt.route) {
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
if (ipprintfs)
|
if (ipprintfs)
|
||||||
printf(" %lx", ntohl(q->s_addr));
|
printf(" %"PRIx32, ntohl(q->s_addr));
|
||||||
#endif
|
#endif
|
||||||
*q++ = *p--;
|
*q++ = *p--;
|
||||||
}
|
}
|
||||||
@@ -1218,7 +1218,7 @@ ip_srcroute(void)
|
|||||||
*q = ip_srcrt.dst;
|
*q = ip_srcrt.dst;
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
if (ipprintfs)
|
if (ipprintfs)
|
||||||
printf(" %lx\n", ntohl(q->s_addr));
|
printf(" %"PRIx32"\n", ntohl(q->s_addr));
|
||||||
#endif
|
#endif
|
||||||
return (m);
|
return (m);
|
||||||
}
|
}
|
||||||
@@ -1294,7 +1294,7 @@ ip_forward(struct mbuf *m, int srcrt)
|
|||||||
dest = 0;
|
dest = 0;
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
if (ipprintfs)
|
if (ipprintfs)
|
||||||
printf("forward: src %lx dst %lx ttl %x\n",
|
printf("forward: src %"PRIx32" dst %"PRIx32" ttl %x\n",
|
||||||
ip->ip_src.s_addr, ip->ip_dst.s_addr, ip->ip_ttl);
|
ip->ip_src.s_addr, ip->ip_dst.s_addr, ip->ip_ttl);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user