View | Details | Raw Unified | Return to bug 25756
Collapse All | Expand All

(-)ip_output.c (-2 / +4 lines)
Lines 91-96 Link Here
91
						  (ntohl(a.s_addr))&0xFF);
91
						  (ntohl(a.s_addr))&0xFF);
92
#endif
92
#endif
93
93
94
#define ifatoia(ifa)	((struct in_ifaddr *)(ifa))
95
#define sintosa(sin)	((struct sockaddr *)(sin))
96
94
u_short ip_id;
97
u_short ip_id;
95
98
96
static struct mbuf *ip_insertoptions __P((struct mbuf *, struct mbuf *, int *));
99
static struct mbuf *ip_insertoptions __P((struct mbuf *, struct mbuf *, int *));
Lines 168-173 Link Here
168
            rule = (struct ip_fw_chain *)(m->m_data) ;
171
            rule = (struct ip_fw_chain *)(m->m_data) ;
169
	    opt = NULL ;
172
	    opt = NULL ;
170
	    ro = & ( ((struct dn_pkt *)m)->ro ) ;
173
	    ro = & ( ((struct dn_pkt *)m)->ro ) ;
174
	    ia = ifatoia(ro->ro_rt->rt_ifa);
171
	    imo = NULL ;
175
	    imo = NULL ;
172
	    dst = ((struct dn_pkt *)m)->dn_dst ;
176
	    dst = ((struct dn_pkt *)m)->dn_dst ;
173
	    ifp = ((struct dn_pkt *)m)->ifp ;
177
	    ifp = ((struct dn_pkt *)m)->ifp ;
Lines 233-240 Link Here
233
	 * If routing to interface only,
237
	 * If routing to interface only,
234
	 * short circuit routing lookup.
238
	 * short circuit routing lookup.
235
	 */
239
	 */
236
#define ifatoia(ifa)	((struct in_ifaddr *)(ifa))
237
#define sintosa(sin)	((struct sockaddr *)(sin))
238
	if (flags & IP_ROUTETOIF) {
240
	if (flags & IP_ROUTETOIF) {
239
		if ((ia = ifatoia(ifa_ifwithdstaddr(sintosa(dst)))) == 0 &&
241
		if ((ia = ifatoia(ifa_ifwithdstaddr(sintosa(dst)))) == 0 &&
240
		    (ia = ifatoia(ifa_ifwithnet(sintosa(dst)))) == 0) {
242
		    (ia = ifatoia(ifa_ifwithnet(sintosa(dst)))) == 0) {

Return to bug 25756