Deleted Added
full compact
route.c (78064) route.c (78139)
1/*
2 * Copyright (c) 1983, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
43#endif
44static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/sbin/route/route.c 78064 2001-06-11 12:39:29Z ume $";
45 "$FreeBSD: head/sbin/route/route.c 78139 2001-06-12 13:23:43Z ru $";
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/file.h>
50#include <sys/socket.h>
51#include <sys/ioctl.h>
52#include <sys/sysctl.h>
53#include <sys/types.h>

--- 824 unchanged lines hidden (view full) ---

878
879 if (getifaddrs(&ifap))
880 err(1, "getifaddrs");
881
882 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
883 if (ifa->ifa_addr->sa_family != AF_LINK)
884 continue;
885
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/file.h>
50#include <sys/socket.h>
51#include <sys/ioctl.h>
52#include <sys/sysctl.h>
53#include <sys/types.h>

--- 824 unchanged lines hidden (view full) ---

878
879 if (getifaddrs(&ifap))
880 err(1, "getifaddrs");
881
882 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
883 if (ifa->ifa_addr->sa_family != AF_LINK)
884 continue;
885
886 if (strcmp(s, ifa->ifa_name) ||
887 (ifa->ifa_flags & IFF_POINTOPOINT) == 0)
886 if (strcmp(s, ifa->ifa_name))
888 continue;
889
890 sdl = (struct sockaddr_dl *)ifa->ifa_addr;
891 }
892 /* If we found it, then use it */
893 if (sdl) {
894 /*
895 * Copy is safe since we have a

--- 767 unchanged lines hidden ---
887 continue;
888
889 sdl = (struct sockaddr_dl *)ifa->ifa_addr;
890 }
891 /* If we found it, then use it */
892 if (sdl) {
893 /*
894 * Copy is safe since we have a

--- 767 unchanged lines hidden ---