iph->ip_id = ntohs(iph->ip_id);
}
+int
+sockopt_tcp_rtt (int sock)
+{
+#ifdef TCP_INFO
+ struct tcp_info ti;
+ socklen_t len = sizeof(ti);
+
+ if (getsockopt (sock, IPPROTO_TCP, TCP_INFO, &ti, &len) != 0)
+ return 0;
+
+ return ti.tcpi_rtt / 1000;
+#else
+ return 0;
+#endif
+}
+
int
sockopt_tcp_signature (int sock, union sockunion *su, const char *password)
{
extern void sockopt_iphdrincl_swab_htosys (struct ip *iph);
extern void sockopt_iphdrincl_swab_systoh (struct ip *iph);
+extern int sockopt_tcp_rtt (int);
extern int sockopt_tcp_signature(int sock, union sockunion *su,
const char *password);
#endif /*_ZEBRA_SOCKOPT_H */