Copy this project from internal repo, initial public release.

License under GPLv2.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
Import travis-ci service, build scripts added.

Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>
Merge pull request #1 from xfguo/master

Import travis-ci service, build scripts added.
Fix some mistaken words

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
Merge pull request #2 from leo-ma/master

Fix some mistaken words
More configure options added to specify cflags/ldflags/libxxx/....

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
Update README.md to describe configure options and how to use.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
Merge pull request #3 from xfguo/master

More configure options added to specify cflags/ldflags/libxxx/....; README.md updated.
Community string check.

Signed-off-by: Leo Ma <leoma@credosemi.com>
Community string check

Signed-off-by: Leo Ma <leoma@credosemi.com>
Bug fix: String passing without end character '\0'

Signed-off-by: Leo Ma <leoma@credosemi.com>
Merge pull request #4 from leo-ma/master

New Feature: community string check and port configure.
Reduce a piece of malloc/free.

Signed-off-by: Leo Ma <leoma@credosemi.com>
Merge remote-tracking branch 'upstream/master'
Merge pull request #5 from leo-ma/master

Reduce a piece of malloc/free.
Agent starts by lua.

Signed-off-by: Leo Ma <leoma@credosemi.com>
Agent starts by lua.

Signed-off-by: Leo Ma <leoma@credosemi.com>
Merge pull request #6 from leo-ma/master

Start agent from lua instead of c main.
Refactoring source files and directories; Some documents.

This commit try to make sure we can writting install script for most OSs easily.

SNMP Agent and SNMP library are seperated to different directories.

Changes:

- SmartSNMP libraries:
  - All lua library move to `lualib/smartsnmp`, so we can *require* directly.
  - SmartSNMP lua C module will be built to `build/smartsnmp/core.so`.
- SmartSNMP agent application:
  - Move SNMP Agent `snmpd.lua` to `bin/snmpd`, later it will be install to `/usr/sbin/` or some where.
- SmartSNMP agent MIB node implementation.
  - Move `example` to `mib`.
  - In future, *private* mib should be placed to `private` directory.
- Remove lots of global object.
- Import getopt lua function for parsing arguments in `snmpd`.
- Simple document in doc/api.md.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>
Remove compiling option '-g'

Signed-off-by: Leo Ma <leoma@credosemi.com>