Skip to content

Commit

Permalink
New nd-proxy for RS/RA proxying
Browse files Browse the repository at this point in the history
Signed-off-by: Blair Steven <[email protected]>
  • Loading branch information
carlgsmith authored and blairsteven committed Sep 22, 2016
1 parent cf244c1 commit df16c05
Show file tree
Hide file tree
Showing 2 changed files with 556 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ LIBS =
OBJS = src/logger.o src/ndppd.o src/iface.o src/proxy.o src/address.o \
src/rule.o src/session.o src/conf.o src/route.o

all: ndppd ndppd.1.gz ndppd.conf.5.gz
all: ndppd ndppd.1.gz ndppd.conf.5.gz nd-proxy

install: all
mkdir -p ${SBINDIR} ${MANDIR} ${MANDIR}/man1 ${MANDIR}/man5
cp ndppd ${SBINDIR}
chmod +x ${SBINDIR}/ndppd
cp ndppd.1.gz ${MANDIR}/man1
cp ndppd.conf.5.gz ${MANDIR}/man5
cp nd-proxy ${SBINDIR}

ndppd.1.gz:
${GZIP} < ndppd.1 > ndppd.1.gz
Expand All @@ -33,8 +34,11 @@ ndppd.conf.5.gz:
ndppd: ${OBJS}
${CXX} -o ndppd ${LDFLAGS} ${LIBS} ${OBJS}

nd-proxy: nd-proxy.c
${CXX} -o nd-proxy -Wall -Werror ${LDFLAGS} `pkg-config --cflags glib-2.0` nd-proxy.c `pkg-config --libs glib-2.0`

.cc.o:
${CXX} -c ${CPPFLAGS} $(CXXFLAGS) -o $@ $<

clean:
rm -f ndppd ndppd.conf.5.gz ndppd.1.gz ${OBJS}
rm -f ndppd ndppd.conf.5.gz ndppd.1.gz ${OBJS} nd-proxy
Loading

0 comments on commit df16c05

Please sign in to comment.