1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
- #include <netdissect-stdinc.h>
- #include "netdissect.h"
- #include "addrtoname.h"
- #include "extract.h"
- struct msnlb_heartbeat_pkt {
- uint32_t unknown1;
- uint32_t unknown2;
- uint32_t host_prio;
- uint32_t virtual_ip;
- uint32_t host_ip;
-
- };
- void
- msnlb_print(netdissect_options *ndo, const u_char *bp)
- {
- const struct msnlb_heartbeat_pkt *hb;
- hb = (const struct msnlb_heartbeat_pkt *)bp;
- ND_TCHECK(*hb);
- ND_PRINT((ndo, "MS NLB heartbeat, host priority: %u,",
- EXTRACT_LE_32BITS(&(hb->host_prio))));
- ND_PRINT((ndo, " cluster IP: %s,", ipaddr_string(ndo, &(hb->virtual_ip))));
- ND_PRINT((ndo, " host IP: %s", ipaddr_string(ndo, &(hb->host_ip))));
- return;
- trunc:
- ND_PRINT((ndo, "[|MS NLB]"));
- }
|