summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge pull request #13 from allfro/patch-6Sam Roberts2011-07-301-7/+4
| |\ | | | | | | Fixes a buffer overflow issue when copying chaddr, file, and sname fields
| | * Fixes a buffer overflow issue when copying chaddr, file, and sname fields to ↵allfro2011-07-301-7/+4
| |/ | | | | | | the DHCP header.
| * Merge pull request #7 from allfro/patch-1Sam Roberts2011-07-291-3/+3
| |\ | | | | | | Fixes a bug that incorrectly converts the addr, mask, and next_hop fields
| | * Fixes a bug that incorrectly converts the addr, mask, and next_hop fields to ↵allfro2011-07-231-3/+3
| | | | | | | | | | | | network byte order. Users will usually call libnet_name2addr4 to fill these fields and this function already provides a network byte-ordered value.
| * | Merge pull request #9 from allfro/patch-3Sam Roberts2011-07-291-2/+2
| |\ \ | | | | | | | | Fixes incorrect memory block size set in the timeexceed & redirect builder
| | * | Fixes incorrect memory block size set in the timeexceed and redirect ↵allfro2011-07-231-2/+2
| | |/ | | | | | | | | | builders. The n variable does not add the size of the payload (payload_s) for proper allocation of the buffer when payload is not NULL and payload_s is greater than 0. This results in a memcpy buffer overflow error when libnet_pblock_append is called exiting the program.
| * | Merge pull request #10 from allfro/masterSam Roberts2011-07-291-1/+1
| |\ \ | | |/ | |/| Fixes improper calculation of header size in HSRP builder
| | * Fixes improper calculation of header size when libnet_pblock_probe is ↵allfro2011-07-291-1/+1
| |/ | | | | | | called. payload_s must be added to the header length in order to accommodate for the existence of a non-NULL payload. Otherwise the user is prompted with a 'memcpy would cause overflow' error and the program exits.
* | Merge branch 'master' of gitorious.wurldtech.local:libnet/libnetSam Roberts2011-08-091-1/+1
|\ \
| * \ Merge branch 'master' of https://github.com/sam-github/libnetKelvie Wong2011-04-181-33/+42
| |\ \
| * | | Use dnet.h instead of dumbnet.hKelvie Wong2011-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | I think this is because of differing versions of Ubuntu; the one on the build server uses dnet.h still.
* | | | Add n:igmp(), a function for building igmp protocol blocks.Sam Roberts2011-08-092-0/+73
| | | |
* | | | Don't use pedantic, it spits warnings about gcc extensions used in libnet's ↵Sam Roberts2011-08-091-1/+0
| | | | | | | | | | | | | | | | headers.
* | | | Synchronize comment about h_len with parameter name in function.Sam Roberts2011-08-091-1/+1
| |_|/ |/| |
* | | snap parameter was getting copied into the dhost field.Sam Roberts2011-06-091-1/+1
| | |
* | | h_len is no longer used, so pass zero.Sam Roberts2011-06-091-3/+2
| | | | | | | | | | | | | | | | | | | | | Coverity noticed that stack garbage was being passed instead of a valid value, its just that the value isn't used, and incluing l->total_size is wrong when the pblock is being updated (though it will work on pblock creation).
* | | Length n should include the value_hdr.Sam Roberts2011-06-091-5/+5
| | |
* | | Coverity: UNINITJiri Popelka2011-06-091-0/+1
| | | | | | | | | | | | | | | | | | | | | libnet_build_icmp.c:403: var_decl: Declaring variable "h" without initializer. libnet_build_icmp.c:433: uninit_use_in_call: Using uninitialized value "h" when calling "libnet_pblock_update". libnet_pblock.c:295: read_parm: Reading a parameter value.
* | | Coverity: REVERSE_INULLJiri Popelka2011-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | libnet_port_list.c:142: deref_ptr: Directly dereferencing pointer "tmp". libnet_port_list.c:130: check_after_deref: Dereferencing "tmp" before a null check. libnet_port_list.c:197: deref_ptr: Directly dereferencing pointer "plist". libnet_port_list.c:198: check_after_deref: Dereferencing "plist" before a null check.
* | | Coverity: RESOURCE_LEAKJiri Popelka2011-06-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libnet_if_addr.c:139: alloc_fn: Calling allocation function "fopen". libnet_if_addr.c:139: var_assign: Assigning: "fp" = storage returned from "fopen("/proc/net/dev", "r")". libnet_if_addr.c:157: leaked_storage: Variable "fp" going out of scope leaks the storage it points to. libnet_if_addr.c:227: leaked_storage: Variable "fp" going out of scope leaks the storage it points to. libnet_if_addr.c:246: leaked_storage: Variable "fp" going out of scope leaks the storage it points to. libnet_if_addr.c:263: leaked_storage: Variable "fp" going out of scope leaks the storage it points to.
* | | Coverity: OVERRUN_STATICJiri Popelka2011-06-092-1/+2
| | | | | | | | | | | | | | | libnet_build_cdp.c:162: overrun-buffer-arg: Overrunning struct type struct libnet_cdp_value_hdr of size 4 bytes by passing it to a function which indexes it with argument "8U" at byte position 7. libnet_pblock.c:278: access_dbuff_in_call: Calling "memcpy" indexes array "buf" with index "len".
* | | Coverity: OVERRUN_STATICJiri Popelka2011-06-081-3/+3
| | | | | | | | | | | | | | | | | | | | | libnet_build_isl.c:76: overrun-buffer-arg: Overrunning static array "&isl_hdr.isl_dhost" of size 5 bytes by passing it to a function which indexes it with argument "6UL" at byte position 5.
* | | Coverity: OVERRUN_STATICJiri Popelka2011-06-082-3/+3
| | | | | | | | | | | | | | | | | | libnet_init.c:74: overrun-local: Overrunning static array "l->label", with 64 elements, at position 64 with index variable "sizeof (l->label) /*64*/" libnet_cq.c:119: overrun-local: Overrunning static array "l->label", with 64 elements, at position 64 with index variable "64" libnet_cq.c:150: overrun-local: Overrunning static array "l->label", with 64 elements, at position 64 with index variable "64".
* | | Coverity: FORWARD_NULLJiri Popelka2011-06-081-2/+0
| | | | | | | | | | | | | | | libnet_cq.c:177: var_compare_op: Comparing "l" to null implies that "l" might be null. libnet_cq.c:179: var_deref_model: Passing null variable "l->err_buf" to function "snprintf", which dereferences it.
* | | Coverity: FORWARD_NULLJiri Popelka2011-06-081-5/+4
| | | | | | | | | | | | | | | | | | | | | libnet_checksum.c:210: assign_zero: Assigning: "iph_p" = 0. libnet_checksum.c:277: var_deref_model: Passing null variable "(uint16_t *)&iph_p->ip_src" to function "libnet_in_cksum", which dereferences it. libnet_checksum.c:74: deref_parm: Directly dereferencing parameter "addr". libnet_checksum.c:307: var_deref_model: Passing null variable "(uint16_t *)&iph_p->ip_src" to function "libnet_in_cksum", which dereferences it.
* | | Coverity: CHECKED_RETURNJiri Popelka2011-06-081-6/+19
| |/ |/| | | | | | | libnet_build_tcp.c: check return value of libnet_pblock_append() (as is done elsewhere 143 out of 145 times).
* | Corrected doc conventions.Sam Roberts2011-04-181-34/+34
| |
* | net:write_link() wasn't erroring on failure like net:write() does.Sam Roberts2011-04-181-0/+9
|/
* Remove pcap and netfilter bindings from libnet.Sam Roberts2011-03-3118-3710/+4
|
* Prototype code using nfct to do a userspace conntracker.Sam Roberts2011-03-293-0/+459
|
* API todo, maybe set with nil can clear an attr.Sam Roberts2011-03-291-1/+2
|
* Add flags argument to exp_new(), so expectations can be permanent.Sam Roberts2011-03-291-28/+72
|
* Line buffer output, and note source of events.Sam Roberts2011-03-241-2/+10
|
* utility to print events from nfctSam Roberts2011-03-241-0/+34
|
* ignore TSam Roberts2011-03-241-0/+1
|
* Clarify docs.Sam Roberts2011-03-241-2/+2
|
* Support using both subsystems at once, and callbacks for expectations.Sam Roberts2011-03-241-104/+214
|
* Pared attributes set down to the minimum.Sam Roberts2011-03-231-7/+7
|
* API additions to do.Sam Roberts2011-03-231-6/+9
|
* local ctags helper, should not have been addedSam Roberts2011-03-231-7/+0
|
* rewrite of libnfct's expect_create_userspace utility in luaSam Roberts2011-03-221-0/+223
|
* Fix bug with arg indexing in exp_new(), and added functions to get string ↵Sam Roberts2011-03-221-4/+54
| | | | rep of ct and exp objects.
* Notes on some problems with this approach.Sam Roberts2011-03-151-1/+7
|
* Use literal values, so we can decouple ourselves from what values libc knows ↵Sam Roberts2011-03-151-11/+11
| | | | about.
* Fix assert() that refers to the old name for a global.Sam Roberts2011-03-151-1/+1
|
* Rules to generate options from the system headersSam Roberts2011-03-101-0/+6
|
* nfq's get_payload() changed the sign of its output argumentSam Roberts2011-03-101-2/+2
|
* Added nfexp_ APIs, and script to build tables of options.Sam Roberts2011-02-144-231/+926
|
* Pathetically incomplete unit test for nfct.Sam Roberts2011-02-101-0/+10
|
* Extended to support real-world use cases.Sam Roberts2011-02-103-78/+191
| | | | | | Features include nonblocking, attributes in presentation format and host numeric order, and some general bug-fixing. order