]> git.proxmox.com Git - qemu.git/blobdiff - slirp/udp.h
rng-egd: remove redundant free
[qemu.git] / slirp / udp.h
index cc814a3f4823d2f9edaff9edd5c936ce3bb7ae66..9bf31fe7be41a7ad631b84b0db1a0c56d2054313 100644 (file)
  * Per RFC 768, September, 1981.
  */
 struct udphdr {
-       u_int16_t       uh_sport;               /* source port */
-       u_int16_t       uh_dport;               /* destination port */
-       int16_t uh_ulen;                /* udp length */
-       u_int16_t       uh_sum;                 /* udp checksum */
+    uint16_t uh_sport;          /* source port */
+    uint16_t uh_dport;          /* destination port */
+    int16_t  uh_ulen;           /* udp length */
+    uint16_t uh_sum;            /* udp checksum */
 };
 
 /*
@@ -73,13 +73,14 @@ struct udpiphdr {
 
 struct mbuf;
 
-void udp_init _P((Slirp *));
-void udp_input _P((register struct mbuf *, int));
-int udp_output _P((struct socket *, struct mbuf *, struct sockaddr_in *));
-int udp_attach _P((struct socket *));
-void udp_detach _P((struct socket *));
-struct socket * udp_listen _P((Slirp *, u_int32_t, u_int, u_int32_t, u_int,
-                               int));
+void udp_init(Slirp *);
+void udp_cleanup(Slirp *);
+void udp_input(register struct mbuf *, int);
+int udp_output(struct socket *, struct mbuf *, struct sockaddr_in *);
+int udp_attach(struct socket *);
+void udp_detach(struct socket *);
+struct socket * udp_listen(Slirp *, uint32_t, u_int, uint32_t, u_int,
+                           int);
 int udp_output2(struct socket *so, struct mbuf *m,
                 struct sockaddr_in *saddr, struct sockaddr_in *daddr,
                 int iptos);