Date: Sat, 29 Nov 2008 18:13:24 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 153773 for review Message-ID: <200811291813.mATIDOac079873@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=153773 Change 153773 by zec@zec_tpx32 on 2008/11/29 18:13:08 Fix misintegrations / unbreak build. Affected files ... .. //depot/projects/vimage/src/sys/netinet/ip_output.c#24 edit .. //depot/projects/vimage/src/sys/netinet/tcp_subr.c#66 edit .. //depot/projects/vimage/src/sys/netinet/udp_usrreq.c#43 edit .. //depot/projects/vimage/src/sys/netinet/vinet.h#39 edit Differences ... ==== //depot/projects/vimage/src/sys/netinet/ip_output.c#24 (text+ko) ==== @@ -791,7 +791,6 @@ void in_delayed_cksum(struct mbuf *m) { - INIT_VNET_INET(curvnet); struct ip *ip; u_short csum, offset; ==== //depot/projects/vimage/src/sys/netinet/tcp_subr.c#66 (text+ko) ==== @@ -201,7 +201,7 @@ "Enable tcp_drain routine for extra help when low on mbufs"); SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_tcp, OID_AUTO, pcbcount, - CTLFLAG_RD, V_tcbinfo.ipi_count, 0, "Number of active PCBs"); + CTLFLAG_RD, tcbinfo.ipi_count, 0, "Number of active PCBs"); SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_tcp, OID_AUTO, icmp_may_rst, CTLFLAG_RW, icmp_may_rst, 0, ==== //depot/projects/vimage/src/sys/netinet/udp_usrreq.c#43 (text+ko) ==== @@ -1222,7 +1222,7 @@ sin = (struct sockaddr_in *)nam; if (prison_remote_ip4(td->td_ucred, &sin->sin_addr) != 0) { INP_WUNLOCK(inp); - INP_INFO_WUNLOCK(&udbinfo); + INP_INFO_WUNLOCK(&V_udbinfo); return (EAFNOSUPPORT); } error = in_pcbconnect(inp, nam, td->td_ucred); ==== //depot/projects/vimage/src/sys/netinet/vinet.h#39 (text+ko) ==== @@ -332,16 +332,6 @@ #define V_udpstat VNET_INET(udpstat) #define V_useloopback VNET_INET(useloopback) -static __inline uint16_t ip_newid(void); -extern int ip_do_randomid; - -static __inline uint16_t -ip_newid(void) -{ - if (V_ip_do_randomid) - return ip_randomid(); - - return htons(V_ip_id++); -} +#define ip_newid() (V_ip_do_randomid != 0 ? ip_randomid() : htons(V_ip_id++)) #endif /* !_NETINET_VINET_H_ */home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811291813.mATIDOac079873>
