Commit 52d5ac3f authored by shemminger's avatar shemminger

Fix build issues

parent c515871c
2005-07-05 Thomas Graf <tgraf@suug.ch>
* Build check for GNU Bison
2005-06-23 Jamal Hadi Salim <hadi@znyx.com> 2005-06-23 Jamal Hadi Salim <hadi@znyx.com>
* Fix for options process with ipt * Fix for options process with ipt
......
...@@ -31,10 +31,17 @@ SUBDIRS=lib ip tc misc netem ...@@ -31,10 +31,17 @@ SUBDIRS=lib ip tc misc netem
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
all: Config all: flex_check Config
@for i in $(SUBDIRS); \ @for i in $(SUBDIRS); \
do $(MAKE) $(MFLAGS) -C $$i; done do $(MAKE) $(MFLAGS) -C $$i; done
flex_check:
@if [ -z "`flex -h | grep '^Usage: flex '`" ]; then \
echo "GNU flex required, please install it."; \
echo " see http://lex.sourceforge.net"; \
exit 1; \
fi
Config: Config:
sh configure $(KERNEL_INCLUDE) sh configure $(KERNEL_INCLUDE)
......
...@@ -1338,6 +1338,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r) ...@@ -1338,6 +1338,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r)
if (info->tcpi_options & TCPI_OPT_ECN) if (info->tcpi_options & TCPI_OPT_ECN)
printf(" ecn"); printf(" ecn");
} }
if (tb[TCPDIAG_CONG]) if (tb[TCPDIAG_CONG])
printf("%s", (char *) RTA_DATA(tb[TCPDIAG_CONG])); printf("%s", (char *) RTA_DATA(tb[TCPDIAG_CONG]));
...@@ -1355,7 +1356,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r) ...@@ -1355,7 +1356,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r)
printf(" cwnd:%d", info->tcpi_snd_cwnd); printf(" cwnd:%d", info->tcpi_snd_cwnd);
if (info->tcpi_snd_ssthresh < 0xFFFF) if (info->tcpi_snd_ssthresh < 0xFFFF)
printf(" ssthresh:%d", info->tcpi_snd_ssthresh); printf(" ssthresh:%d", info->tcpi_snd_ssthresh);
rtt = (double) info->tcpi_rtt; rtt = (double) info->tcpi_rtt;
if (tb[TCPDIAG_VEGASINFO]) { if (tb[TCPDIAG_VEGASINFO]) {
const struct tcpvegas_info *vinfo const struct tcpvegas_info *vinfo
......
...@@ -86,4 +86,4 @@ q_atm.so: q_atm.c ...@@ -86,4 +86,4 @@ q_atm.so: q_atm.c
$(YACC) $(YACCFLAGS) -o $@ $< $(YACC) $(YACCFLAGS) -o $@ $<
%.lex.c: %.l %.lex.c: %.l
$(LEX) $(LEXFLAGS) -o $@ $< $(LEX) $(LEXFLAGS) -o$@ $<
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment