2#ifndef CLICK_ADDRESSINFO_HH
3#define CLICK_ADDRESSINFO_HH
108class AddressInfo :
public Element {
public:
112 const char *
class_name()
const override {
return "AddressInfo"; }
120 static bool query_ip(
const String &s,
unsigned char *store,
const Element *context,
int flags = 0);
121 static bool query_ip_prefix(
String s,
unsigned char *store_addr,
unsigned char *store_mask,
const Element *context,
int flags = 0);
123 static bool query_ip6(
String s,
unsigned char *store,
const Element *context,
int flags = 0);
124 static bool query_ip6_prefix(
String s,
unsigned char *store_addr,
int *store_prefixlen,
const Element *context,
int flags = 0);
126 static bool query_ethernet(
String s,
unsigned char *store,
const Element *context,
int flags = 0);
130 static bool query_netdevice(
const String &
name,
unsigned char *store,
int type,
int len,
const Element *context,
int flags);
Base class for Click elements.
Definition element.hh:42
String name() const
Return the element's name.
Definition element.cc:555
virtual int configure_phase() const
Return the element's configure phase, which determines the order in which elements are configured and...
Definition element.cc:1308
virtual const char * flags() const
Return the element's flags.
Definition element.cc:1234
virtual int configure(Vector< String > &conf, ErrorHandler *errh)
Parse the element's configuration arguments.
Definition element.cc:1372
virtual const char * class_name() const =0
Return the element's class name.
Error reporting class.
Definition error.hh:90
A string of characters.
Definition string.hh:22
Vector template.
Definition vector.hh:111