|
The Assimilation Monitoring Project
|
Functions for server-side dumping of LLDP and CDP packets. More...
#include <projectcommon.h>

Go to the source code of this file.
Functions | |
| WINEXPORT void | dump_cdp_packet (const void *packet, const void *packend) |
| Dump out a CDP packet - not very intelligently. More... | |
| WINEXPORT void | dump_lldp_packet (const void *packet, const void *packend) |
| Dump an LLDP packet to stdout. More... | |
| WINEXPORT gboolean | is_all_ascii (const void *mem, const void *end) |
| return TRUE if this memory is all printable ASCII More... | |
| WINEXPORT void | dump_mem (const void *start, const void *end) |
| Dump out memory. More... | |
Functions for server-side dumping of LLDP and CDP packets.
This file is part of the Assimilation Project.
The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/
Definition in file server_dump.h.
| void dump_cdp_packet | ( | const void * | vpacket, |
| const void * | vpktend | ||
| ) |
Dump out a CDP packet - not very intelligently.
| [in] | vpacket | Pointer to a the start of a CDP packet |
| [in] | vpktend | Pointer of first byte past end of CDP packet |
Definition at line 87 of file cdp.c.
References dump_mem(), get_cdp_cksum(), get_cdp_ttl(), get_cdp_type_string(), get_cdp_vers(), get_cdptlv_body(), get_cdptlv_first(), get_cdptlv_next(), get_cdptlv_type(), get_cdptlv_vlen(), and is_valid_cdp_packet().
Referenced by main().


| void dump_lldp_packet | ( | const void * | tlv_vpv, |
| const void * | tlv_vpendv | ||
| ) |
Dump an LLDP packet to stdout.
| [in] | tlv_vpv | Pointer to the first byte of the packet |
| [in] | tlv_vpendv | Pointer to the first byte past the end of the packet |
Definition at line 120 of file lldp.c.
References dump_mem(), get_lldp_type_string(), get_lldptlv_body(), get_lldptlv_first(), get_lldptlv_len(), get_lldptlv_next(), get_lldptlv_type(), get_oui(), get_oui_string(), is_valid_lldp_packet(), LLDP_TLV_ORG_SPECIFIC, and oui.
Referenced by main().


| WINEXPORT void dump_mem | ( | const void * | start, |
| const void * | end | ||
| ) |
Dump out memory.
Definition at line 60 of file dump.c.
References is_all_ascii().
Referenced by dump_cdp_packet(), dump_lldp_packet(), and main().


| WINEXPORT gboolean is_all_ascii | ( | const void * | mem, |
| const void * | end | ||
| ) |
return TRUE if this memory is all printable ASCII
Definition at line 36 of file dump.c.
Referenced by dump_mem().
