I.e., use the flags from the netdissect_options structure.
* and address to string conversion routines
*/
* and address to string conversion routines
*/
+#define NETDISSECT_REWORKED
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
char *dotp;
p->name = strdup(hp->h_name);
char *dotp;
p->name = strdup(hp->h_name);
/* Remove domain qualifications */
dotp = strchr(p->name, '.');
if (dotp)
/* Remove domain qualifications */
dotp = strchr(p->name, '.');
if (dotp)
char *dotp;
p->name = strdup(hp->h_name);
char *dotp;
p->name = strdup(hp->h_name);
/* Remove domain qualifications */
dotp = strchr(p->name, '.');
if (dotp)
/* Remove domain qualifications */
dotp = strchr(p->name, '.');
if (dotp)
/*
* Initialize the address to name translation machinery. We map all
/*
* Initialize the address to name translation machinery. We map all
- * non-local IP addresses to numeric addresses if fflag is true (i.e.,
- * to prevent blocking on the nameserver). localnet is the IP address
+ * non-local IP addresses to numeric addresses if ndo->ndo_fflag is true
+ * (i.e., to prevent blocking on the nameserver). localnet is the IP address
* of the local network. mask is its subnet mask.
*/
void
init_addrtoname(netdissect_options *ndo, u_int32_t localnet, u_int32_t mask)
{
* of the local network. mask is its subnet mask.
*/
void
init_addrtoname(netdissect_options *ndo, u_int32_t localnet, u_int32_t mask)
{
f_localnet = localnet;
f_netmask = mask;
}
f_localnet = localnet;
f_netmask = mask;
}