Changeset 39085 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Oct 24, 2011 6:58:33 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 74517
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r37746 r39085 345 345 { 346 346 struct bootp_t *rbp; 347 uint8_t *q = NULL;348 347 rbp = mtod(m, struct bootp_t *); 348 NOREF(bc); 349 349 350 350 dhcp_create_msg(pData, bp, m, DHCPNAK); -
trunk/src/VBox/Devices/Network/slirp/bsd/sys/mbuf.h
r36901 r39085 1111 1111 m_tag_next(struct mbuf *m, struct m_tag *t) 1112 1112 { 1113 1113 NOREF(m); 1114 1114 return (SLIST_NEXT(t, m_tag_link)); 1115 1115 } -
trunk/src/VBox/Devices/Network/slirp/debug.c
r38492 r39085 202 202 * @todo: make statistic correct 203 203 */ 204 NOREF(pData); 204 205 } 205 206 … … 253 254 { 254 255 struct socket *so = (struct socket*)pvValue; 255 uint32_t ip;256 256 struct sockaddr addr; 257 257 struct sockaddr_in *in_addr; 258 258 socklen_t socklen = sizeof(struct sockaddr); 259 259 int status = 0; 260 NOREF(cchWidth); 261 NOREF(cchPrecision); 262 NOREF(fFlags); 263 NOREF(pvUser); 260 264 261 265 AssertReturn(strcmp(pszType, "natsock") == 0, 0); -
trunk/src/VBox/Devices/Network/slirp/ext.h
r30016 r39085 79 79 # ifdef LOG_ENABLED 80 80 va_list args; 81 NOREF(ignored); 81 82 va_start(args, format); 82 83 vbox_slirp_printV(format, args); -
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r39024 r39085 781 781 register struct ip *ip = mtod(m, struct ip *); 782 782 int hlen = ip->ip_hl << 2; 783 int optlen = hlen - sizeof(struct ip);784 783 register struct icmp *icp; 785 784 LogFlowFunc(("ENTER: m:%p\n", m)); -
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r37936 r39085 88 88 { 89 89 struct libalias *la = pData->proxy_alias; 90 struct udphdr *udp = NULL;91 struct ip *pip = NULL;92 90 93 91 struct m_tag *t; -
trunk/src/VBox/Devices/Network/slirp/ip_output.c
r38110 r39085 122 122 register int hlen = sizeof(struct ip); 123 123 int len, off, error = 0; 124 extern uint8_t zerro_ethaddr[ETH_ALEN];125 124 struct ethhdr *eh = NULL; 126 125 uint8_t eth_dst[ETH_ALEN]; -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c
r37746 r39085 191 191 /* Parse dns request */ 192 192 char *qw_qname = NULL; 193 uint16_t *qw_qtype = NULL;194 uint16_t *qw_qclass = NULL;195 193 struct hostent *h = NULL; 196 194 char cname[255]; -
trunk/src/VBox/Devices/Network/slirp/misc.c
r38492 r39085 208 208 struct item *it; 209 209 uma_zone_t zone; 210 uma_zone_t master_zone;211 210 212 211 Assert(item); -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r38971 r39085 1108 1108 int rc; 1109 1109 int error; 1110 #else1111 int poll_index = 0;1112 1110 #endif 1113 1111 … … 1607 1605 { 1608 1606 struct ethhdr *eh; 1609 uint8_t *buf = NULL;1610 1607 uint8_t *mbuf = NULL; 1611 1608 size_t mlen = 0; … … 1919 1916 void slirp_post_sent(PNATState pData, void *pvArg) 1920 1917 { 1921 struct socket *so = 0;1922 struct tcpcb *tp = 0;1923 1918 struct mbuf *m = (struct mbuf *)pvArg; 1924 1919 m_freem(pData, m); -
trunk/src/VBox/Devices/Network/slirp/slirp.h
r36901 r39085 477 477 { 478 478 struct m_tag * t = NULL; 479 NOREF(pData); 479 480 /* if_encap assumes that all packets goes through aliased address(gw) */ 480 481 if (u8ServiceId == CTL_ALIAS) -
trunk/src/VBox/Devices/Network/slirp/socket.c
r38968 r39085 99 99 sofree(PNATState pData, struct socket *so) 100 100 { 101 struct socket *so_prev = NULL;102 101 if (so == tcp_last_so) 103 102 tcp_last_so = &tcb; … … 725 724 ssize_t len; 726 725 u_long n = 0; 727 int size;728 726 int rc = 0; 729 727 static int signalled = 0;
Note:
See TracChangeset
for help on using the changeset viewer.