mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
914b41c2dc
Submitted by: archie@whistle.com This patch allows true interface routing to be controlled from the command line.. you can now do: route add default -interface ppp0 even if you have no clue what the address at the other end is.. this is part of a set of changes that allow true "unnumbered links" such as netcom run between their sites.. In practice you should assign the address from one of your ethernet interfaces to the local side of the P2P link so that IP doesn't say that the packet comes from 255.255.255.255, but there is no need whatsoever to assign an address of any kind to the remote end of the link.. useful for frame relay links etc also.
26 lines
553 B
Makefile
26 lines
553 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
PROG= route
|
|
MAN8= route.8
|
|
SRCS= route.c keywords.h # ccitt_addr.h
|
|
CFLAGS+=-I. -Wall
|
|
CLEANFILES+=keywords.h
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
|
|
keywords.h: keywords
|
|
sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
|
|
tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
|
|
awk '{ \
|
|
if (NF > 1) \
|
|
printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
|
|
$$2, NR, $$1, $$2 }' \
|
|
> ${.TARGET}
|
|
rm -f _keywords.tmp
|
|
|
|
./keywords.h: keywords.h
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
route .depend lint tags: keywords.h
|