mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Cleanup comments and whitespace. No functional changes.
This commit is contained in:
parent
a49b317c41
commit
3c065f2f3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260709
@ -123,9 +123,6 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags,
|
||||
struct mbuf *m0;
|
||||
int hlen = sizeof (struct ip);
|
||||
int mtu;
|
||||
#if 0
|
||||
int n; /* scratchpad */
|
||||
#endif
|
||||
int error = 0;
|
||||
struct sockaddr_in *dst;
|
||||
const struct sockaddr_in *gw;
|
||||
@ -205,19 +202,18 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags,
|
||||
/*
|
||||
* dst/gw handling:
|
||||
*
|
||||
* dst can be rewritten but always point to &ro->ro_dst
|
||||
* gw is readonly but can be pointed either to dst OR rt_gatewy
|
||||
* therefore we need restore GW if we're re-doing lookup
|
||||
* dst can be rewritten but always points to &ro->ro_dst.
|
||||
* gw is readonly but can point either to dst OR rt_gateway,
|
||||
* therefore we need restore gw if we're redoing lookup.
|
||||
*/
|
||||
gw = dst = (struct sockaddr_in *)&ro->ro_dst;
|
||||
again:
|
||||
ia = NULL;
|
||||
/*
|
||||
* If there is a cached route,
|
||||
* check that it is to the same destination
|
||||
* and is still up. If not, free it and try again.
|
||||
* The address family should also be checked in case of sharing the
|
||||
* cache with IPv6.
|
||||
* If there is a cached route, check that it is to the same
|
||||
* destination and is still up. If not, free it and try again.
|
||||
* The address family should also be checked in case of sharing
|
||||
* the cache with IPv6.
|
||||
*/
|
||||
rte = ro->ro_rt;
|
||||
if (rte && ((rte->rt_flags & RTF_UP) == 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user