projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix sending replies to PTR questions
[project/mdnsd.git]
/
interface.h
diff --git
a/interface.h
b/interface.h
index fcbc3e68cdfc5a3d66e9a77a7ccf9a7a43921f94..50d70715a98161e134b00371520368aa8015f3f2 100644
(file)
--- a/
interface.h
+++ b/
interface.h
@@
-27,6
+27,7
@@
extern struct vlist_tree interfaces;
struct interface {
struct vlist_node node;
struct interface {
struct vlist_node node;
+ struct interface *peer;
const char *name;
char *id;
const char *name;
char *id;
@@
-34,9
+35,15
@@
struct interface {
struct uloop_timeout reconnect;
int v6;
struct uloop_timeout reconnect;
int v6;
+ int multicast;
int ifindex;
int ifindex;
+
struct in_addr v4_addr;
struct in_addr v4_addr;
+ struct in_addr v4_netmask;
struct in6_addr v6_addr;
struct in6_addr v6_addr;
+ struct in6_addr v6_netmask;
+ char v4_addrs[16];
+ char v6_addrs[64];
struct uloop_timeout announce_timer;
int announce_state;
struct uloop_timeout announce_timer;
int announce_state;
@@
-45,6
+52,8
@@
struct interface {
};
int interface_add(const char *name);
};
int interface_add(const char *name);
+void interface_shutdown(void);
int interface_send_packet(struct interface *iface, struct iovec *iov, int iov_len);
int interface_send_packet(struct interface *iface, struct iovec *iov, int iov_len);
+struct interface* interface_get(const char *name, int v6, int multicast);
#endif
#endif