mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
Unbreak this file after the last drive-by committing. We have to
#include route.h before iso88025.h, and we have to dereference the trld_route array correctly. (NOTE: I'm not altogether sure that this is really the correct way to traverse this array. This just eliminates the build warning/error. It may not work right at runtime, and I have no way to test it since I lack the necessary hardware.) Broken by: kbyanc, who gets to wear the pointy hat
This commit is contained in:
parent
76d3dc5297
commit
2ab778e1d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96235
@ -64,8 +64,8 @@ static const char rcsid[] =
|
||||
#include <net/if.h>
|
||||
#include <net/if_dl.h>
|
||||
#include <net/if_types.h>
|
||||
#include <net/iso88025.h>
|
||||
#include <net/route.h>
|
||||
#include <net/iso88025.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/if_ether.h>
|
||||
@ -537,7 +537,7 @@ print_entry(struct sockaddr_dl *sdl,
|
||||
for (seg = 0;
|
||||
seg < ((TR_RCF_RIFLEN(trld->trld_rcf) - 2 ) / 2);
|
||||
seg++)
|
||||
printf(":%x", ntohs(trld->trld_route[seg]));
|
||||
printf(":%x", ntohs(*(trld->trld_route[seg])));
|
||||
}
|
||||
break;
|
||||
case IFT_FDDI:
|
||||
|
Loading…
Reference in New Issue
Block a user