Page MenuHomeFreeBSD

D26454.id77104.diff
No OneTemporary

D26454.id77104.diff

Index: sys/netinet/ip_output.c
===================================================================
--- sys/netinet/ip_output.c
+++ sys/netinet/ip_output.c
@@ -323,11 +323,11 @@
struct ifnet *ifp = NULL; /* keep compiler happy */
struct mbuf *m0;
int hlen = sizeof (struct ip);
- int mtu;
+ int mtu = 0;
int error = 0;
struct sockaddr_in *dst, sin;
const struct sockaddr_in *gw;
- struct in_ifaddr *ia;
+ struct in_ifaddr *ia = NULL;
struct in_addr src;
int isbroadcast;
uint16_t ip_len, ip_off;
@@ -409,7 +409,6 @@
((!NH_IS_VALID(ro->ro_nh)) || dst->sin_family != AF_INET ||
dst->sin_addr.s_addr != ip->ip_dst.s_addr))
RO_INVALIDATE_CACHE(ro);
- ia = NULL;
/*
* If routing to interface only, short circuit routing lookup.
* The use of an all-ones broadcast address implies this; an
@@ -485,7 +484,6 @@
* possible that a matching SPD entry exists.
*/
no_route_but_check_spd = 1;
- mtu = 0; /* Silence GCC warning. */
goto sendit;
#endif
IPSTAT_INC(ips_noroute);
@@ -521,7 +519,6 @@
* possible that a matching SPD entry exists.
*/
no_route_but_check_spd = 1;
- mtu = 0; /* Silence GCC warning. */
goto sendit;
#endif
IPSTAT_INC(ips_noroute);
Index: sys/netinet/udp_usrreq.c
===================================================================
--- sys/netinet/udp_usrreq.c
+++ sys/netinet/udp_usrreq.c
@@ -1151,7 +1151,7 @@
struct epoch_tracker et;
int cscov_partial = 0;
int error = 0;
- int ipflags;
+ int ipflags = 0;
u_short fport, lport;
u_char tos;
uint8_t pr;
@@ -1435,7 +1435,6 @@
ip->ip_off |= htons(IP_DF);
}
- ipflags = 0;
if (inp->inp_socket->so_options & SO_DONTROUTE)
ipflags |= IP_ROUTETOIF;
if (inp->inp_socket->so_options & SO_BROADCAST)

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 17, 4:28 AM (11 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23817860
Default Alt Text
D26454.id77104.diff (1 KB)

Event Timeline