From c18626ad35cdf94edbff196070ccbb6ae825abd0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Mar 2005 21:20:57 +0000 Subject: add packet scheduler git-svn-id: file:///home/lennart/svn/public/avahi/trunk@14 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- iface.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'iface.h') diff --git a/iface.h b/iface.h index 2adab72..50cc98f 100644 --- a/iface.h +++ b/iface.h @@ -17,6 +17,8 @@ typedef struct _flxInterface flxInterface; #include "netlink.h" #include "cache.h" #include "llist.h" +#include "psched.h" +#include "dns.h" struct _flxInterfaceMonitor { flxServer *server; @@ -41,6 +43,10 @@ struct _flxInterface { guint n_ipv6_addrs, n_ipv4_addrs; flxCache *ipv4_cache, *ipv6_cache; + + guint mtu; + + flxPacketScheduler *ipv4_scheduler, *ipv6_scheduler; }; struct _flxInterfaceAddress { @@ -64,8 +70,10 @@ flxInterface* flx_interface_monitor_get_first(flxInterfaceMonitor *m); int flx_interface_is_relevant(flxInterface *i); int flx_address_is_relevant(flxInterfaceAddress *a); -void flx_interface_send_query(flxInterface *i, guchar protocol, flxKey *k); -void flx_interface_send_response(flxInterface *i, guchar protocol, flxRecord *rr); +void flx_interface_send_packet(flxInterface *i, guchar protocol, flxDnsPacket *p); + +void flx_interface_post_query(flxInterface *i, guchar protocol, flxKey *k); +void flx_interface_post_response(flxInterface *i, guchar protocol, flxRecord *rr); void flx_dump_caches(flxServer *s, FILE *f); -- cgit