Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
seastar::net::ipv4 Class Reference

Public Types

using clock_type = lowres_clock
 
using address_type = ipv4_address
 
using proto_type = uint16_t
 

Public Member Functions

 ipv4 (interface *netif)
 
void set_host_address (ipv4_address ip)
 
ipv4_address host_address () const
 
void set_gw_address (ipv4_address ip)
 
ipv4_address gw_address () const
 
void set_netmask_address (ipv4_address ip)
 
ipv4_address netmask_address () const
 
interfacenetif () const
 
void set_packet_filter (ip_packet_filter *)
 
ip_packet_filterpacket_filter () const
 
void send (ipv4_address to, ip_protocol_num proto_num, packet p, ethernet_address e_dst)
 
tcp< ipv4_traits > & get_tcp ()
 
ipv4_udpget_udp ()
 
void register_l4 (proto_type id, ip_protocol *handler)
 
const net::hw_featureshw_features () const
 
void learn (ethernet_address l2, ipv4_address l3)
 
void register_packet_provider (ipv4_traits::packet_provider_type &&func)
 
future< ethernet_addressget_l2_dst_address (ipv4_address to)
 

Static Public Member Functions

static address_type broadcast_address ()
 
static proto_type arp_protocol_type ()
 
static bool needs_frag (packet &p, ip_protocol_num proto_num, net::hw_features hw_features)
 

The documentation for this class was generated from the following file: