Skip to content

Commit

Permalink
V35.HZ7 changes
Browse files Browse the repository at this point in the history
- add plaintext stats response
- add syslog logging of various EXIT_FAILURE conditions
- add counters for "connection timeout" and "connection closed" failure cases
- add counters for "no extension", "unsupported extension", "no URL", and "bad path" default response cases
- add configurable timeout(s)
- increase default timeout(s) per mstombs suggestion
- integrate transparent+caching .ico response from M0g13r/mstombs
  • Loading branch information
HunterZ committed Sep 1, 2014
1 parent 0013b4c commit 0ee0658
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 102 deletions.
15 changes: 13 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,33 @@ $CC $CFLAGS $OPTS $SRC -o $BIN
ls -laF $BIN

# use Linksys Tomato toolchain (or teddy_bear tomatousb K26, Tornado dd-wrt)
export PATH=/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin:$PATH
#export PATH=/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin:$PATH
CC="mipsel-uclibc-gcc -mips32"
CFLAGS="-Os -s -Wall -ffunction-sections -fdata-sections"
LDFLAGS="-Wl,--gc-sections"
STRIP="mipsel-uclibc-strip -s -R .note -R .comment -R .gnu.version -R .gnu.version_r"

#tomato
OPTS="-DDO_COUNT -DTEXT_REPLY -DDROP_ROOT -DNULLSERV_REPLIES -DSSL_RESP -DMULTIPORT -DIF_MODE -DSTATS_REPLY -DREDIRECT"
OPTS="-DTEXT_REPLY -DDROP_ROOT -DNULLSERV_REPLIES -DSSL_RESP -DMULTIPORT -DIF_MODE -DSTATS_REPLY -DREDIRECT"
# -DIF_MODE "-i br0" responsible for failures when gui changes made
# -DREAD_FILE -DREAD_GIF over-ridden by -DNULLSERV_REPLIES
# -DPORT_MODE set by -DMULTIPORT
# -DDO_COUNT set by -DSTATS_REPLY
# -DVERBOSE"
BIN=$OUT
$CC $CFLAGS $LDFLAGS $OPTS $SRC -o $BIN
$STRIP $BIN
ls -laF $BIN

#tomato static (leandroong) - doesn't build for me due to missing libgcc_s.so
#LDFLAGS="-Wl,--gc-sections,-static"
#BIN=$OUT.static
#$CC $CFLAGS $LDFLAGS $OPTS $SRC -o $BIN
#$STRIP $BIN
#ls -laF $BIN

#tomato tiny
LDFLAGS="-Wl,--gc-sections"
OPTS="-O3 -DTINY"
BIN=$OUT.tiny
$CC $CFLAGS $LDFLAGS $OPTS $SRC -o $BIN
Expand Down
Loading

0 comments on commit 0ee0658

Please sign in to comment.