Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rework libnet_autobuild_ipv6() to eliminate code duplication.v1.1.6-rc1libnet-1.1.6-rc1 | Sam Roberts | 2012-03-06 | 3 | -61/+23 |
| | | | | | | Use libnet_build_ipv6() to build the packet rather than duplicating it, and use new libnet_in6_is_error() function to check for identity with in6addr_error. | ||||
* | Implemented libnet_autobuild_ipv6() | repolho | 2012-03-05 | 2 | -4/+67 |
| | |||||
* | Implemented unix version of libnet_get_ipaddr6() | repolho | 2012-03-05 | 2 | -1/+53 |
| | |||||
* | Update old debian packaging. | Sam Roberts | 2012-03-05 | 2 | -2/+0 |
| | |||||
* | Reintroduce libnet_pblock_record_ip_offset() which is empty. | Sam Roberts | 2012-03-05 | 1 | -0/+11 |
| | | | | | | This is for backwards compatibility, so symbols don't get removed from libnet. The function does nothing, the information it updated is no longer stored in a pblock. | ||||
* | Prep for 1.1.6 release. | Sam Roberts | 2012-03-05 | 1 | -19/+3 |
| | |||||
* | Make clear that all contributions are under libnet copyright. | Sam Roberts | 2012-03-05 | 2 | -0/+3 |
| | |||||
* | Fix doc comment format errors reported by doxygen. | Sam Roberts | 2012-03-05 | 1 | -6/+7 |
| | |||||
* | Update for doxygen 1.7.4. | Sam Roberts | 2012-03-05 | 1 | -574/+996 |
| | |||||
* | Note that PORTED is no longer maintained. | Sam Roberts | 2012-03-05 | 1 | -0/+2 |
| | |||||
* | Note that CONTRIB is no longer maintained. | Sam Roberts | 2012-03-05 | 1 | -1/+1 |
| | |||||
* | Prep for upcoming 1.1.6 release. | Sam Roberts | 2012-03-05 | 1 | -0/+42 |
| | |||||
* | Remove BUGS, it referred to non-existent code. | Sam Roberts | 2012-03-05 | 2 | -20/+1 |
| | | | | getprotobynumber() is no longer called by libnet. | ||||
* | Reworked icmpv6 patch to parallel the form of icmpv4 support. | Sam Roberts | 2012-03-05 | 6 | -204/+306 |
| | | | | | Use same calling sequences, identifier names modelled on <netinet/icmp6.h>, etc. | ||||
* | Don't depend on netinet/ip.h. | Sam Roberts | 2012-03-05 | 1 | -1/+0 |
| | | | | | | | It might define ip_len as a macro on AIX, causing compile problems for libnet-headers.h (reported by Alo Bar-Lev <alon.barlev@gmail.com>). In general, libnet should not use system's packet structures, they vary too much across platforms. | ||||
* | Ignore ~ files. | Sam Roberts | 2012-03-05 | 1 | -17/+18 |
| | |||||
* | Remove unused variable. | Sam Roberts | 2012-03-05 | 1 | -2/+1 |
| | |||||
* | Remove old unmerged patches. | Sam Roberts | 2012-03-05 | 4 | -463/+0 |
| | |||||
* | Support building ICMPv6 packets. | someone | 2012-03-01 | 5 | -29/+273 |
| | | | | | Support for building base ICMPv6 header (type/code), as well as echo requests, neighbour solicitation, and neighbour advertisement. | ||||
* | Fixed typo in error message. | Thomas Habets | 2012-03-01 | 1 | -1/+1 |
| | |||||
* | Use SO_BINDTODEVICE to force packets out opened device. | someone | 2012-03-01 | 1 | -1/+8 |
| | | | | | | | | SO_BINDTODEVICE is used because the kernel may send our packets to a wrong interface, especially those with link-local addresses. There is no such problem with ipv4 as far as I know. Also, use AF_INET6 instead of PF_INET6 becaue PF_ may not exist. | ||||
* | Always use an IPPROTO of TCP when calculating TCP checksums. | Sam Roberts | 2012-02-22 | 1 | -1/+1 |
| | | | | | | This is consistent with how UDP and ICMP checksums are calculated, though it means that the checksum isn't calculated over the actual protocol number in the underlying IP header. | ||||
* | Use correct addr type for addrlen calculation. | someone | 2012-02-22 | 1 | -1/+1 |
| | |||||
* | Autodetect whether dnet.h is provided as dumbnet.h | Sam Roberts | 2012-02-16 | 3 | -1/+7 |
| | |||||
* | libnet_build_igmp reserved field was mistakenly called 'code' | Sam Roberts | 2012-02-15 | 3 | -7/+9 |
| | | | | | Looks like error occurred because function was a copy of libnet_build_icmp(). | ||||
* | Documentation doesn't include any gif files. | Sam Roberts | 2012-02-15 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of https://github.com/knoopx/libnet | Sam Roberts | 2012-02-15 | 2 | -0/+18 |
|\ | |||||
| * | Trying to fix write errors | Víctor Martínez | 2012-02-08 | 2 | -0/+18 |
| | | |||||
* | | Enable IPV6 support on Solaris 11. | Rich Burridge | 2012-02-15 | 1 | -0/+4 |
|/ | | | | | I also suggest adding in support for the next Solaris release (12 a.k.a. 5.12). | ||||
* | Presence of linux's PF_PACKET sockets is now detected. | Sam Roberts | 2011-08-23 | 2 | -12/+5 |
| | | | | | | The acinclude.m4 merged in from packetfactory's 1.1.3-rc branch mysteriously assumed that that there was no PF_PACKET if the target OS was linux, which is the opposite of what we want. | ||||
* | Fix libnet_build_igmp() to not reverse the order of the ip address. | Sam Roberts | 2011-08-10 | 2 | -2/+2 |
| | | | | | libnet APIs that take IP addresses as a uint32_t expect them to already be in network byte order. | ||||
* | pblock_append deals with raw memory and structs, so declare it correctly | Sam Roberts | 2011-08-09 | 2 | -4/+2 |
| | |||||
* | Clarified types and sizes of DHCP/BOOTP chaddr, sname, and file. | Sam Roberts | 2011-08-09 | 3 | -32/+21 |
| | | | | | chaddr is a hardware address, with size specified seperately, whereas sname and file are null terminated strings. | ||||
* | Explicitly ignore return value of write (some systems now warn about this). | Sam Roberts | 2011-08-09 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:sam-github/libnet | Sam Roberts | 2011-08-09 | 4 | -13/+10 |
|\ | |||||
| * | Merge pull request #13 from allfro/patch-6 | Sam Roberts | 2011-07-30 | 1 | -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 ↵ | allfro | 2011-07-30 | 1 | -7/+4 |
| |/ | | | | | | | the DHCP header. | ||||
| * | Merge pull request #7 from allfro/patch-1 | Sam Roberts | 2011-07-29 | 1 | -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 ↵ | allfro | 2011-07-23 | 1 | -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-3 | Sam Roberts | 2011-07-29 | 1 | -2/+2 |
| |\ \ | | | | | | | | | Fixes incorrect memory block size set in the timeexceed & redirect builder | ||||
| | * | | Fixes incorrect memory block size set in the timeexceed and redirect ↵ | allfro | 2011-07-23 | 1 | -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/master | Sam Roberts | 2011-07-29 | 1 | -1/+1 |
| |\ \ | | |/ | |/| | Fixes improper calculation of header size in HSRP builder | ||||
| | * | Fixes improper calculation of header size when libnet_pblock_probe is ↵ | allfro | 2011-07-29 | 1 | -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/libnet | Sam Roberts | 2011-08-09 | 1 | -1/+1 |
|\ \ | |||||
| * \ | Merge branch 'master' of https://github.com/sam-github/libnet | Kelvie Wong | 2011-04-18 | 1 | -33/+42 |
| |\ \ | |||||
| * | | | Use dnet.h instead of dumbnet.h | Kelvie Wong | 2011-04-11 | 1 | -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 Roberts | 2011-08-09 | 2 | -0/+73 |
| | | | | |||||
* | | | | Don't use pedantic, it spits warnings about gcc extensions used in libnet's ↵ | Sam Roberts | 2011-08-09 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | headers. | ||||
* | | | | Synchronize comment about h_len with parameter name in function. | Sam Roberts | 2011-08-09 | 1 | -1/+1 |
| |_|/ |/| | | |||||
* | | | snap parameter was getting copied into the dhost field. | Sam Roberts | 2011-06-09 | 1 | -1/+1 |
| | | |