Searched refs:PNATState (Results 1 - 25 of 50) sorted by relevance

12

/vbox/src/VBox/Devices/Network/slirp/
H A Dslirp_dns.h19 int slirpInitializeDnsSettings(PNATState pData);
20 int slirpReleaseDnsSettings(PNATState pData);
H A Dmisc.h31 typedef void *PNATState; typedef
34 void slirp_insque (PNATState, void *, void *);
35 void slirp_remque (PNATState, void *);
37 void getouraddr (PNATState);
54 typedef int (*ctor_t)(PNATState, void *, int, void *, int);
55 typedef void (*dtor_t)(PNATState, void *, int, void *);
56 typedef int (*zinit_t)(PNATState, void *, int, int);
57 typedef void (*zfini_t)(PNATState, void *, int);
58 uma_zone_t uma_zcreate(PNATState, char *, size_t, ctor_t, dtor_t, zinit_t, zfini_t, int, int);
73 void m_fini(PNATState pDat
[all...]
H A Dlibslirp.h41 typedef struct NATState *PNATState; typedef in typeref:struct:NATState
48 int slirp_init(PNATState *, uint32_t, uint32_t, bool, bool, int, int, void *);
49 void slirp_register_statistics(PNATState pData, PPDMDRVINS pDrvIns);
50 void slirp_deregister_statistics(PNATState pData, PPDMDRVINS pDrvIns);
51 void slirp_term(PNATState);
52 void slirp_link_up(PNATState);
53 void slirp_link_down(PNATState);
56 void slirp_select_fill(PNATState pData, int *pndfs);
58 void slirp_select_poll(PNATState pData, int fTimeout);
60 void slirp_select_fill(PNATState pDat
[all...]
H A Dtftp.h37 int slirpTftpInput(PNATState pData, struct mbuf *m);
38 int slirpTftpInit(PNATState pData);
39 void slirpTftpTerm(PNATState pData);
H A Ddebug.h34 int debug_init (PNATState);
35 void ipstats (PNATState);
36 void tcpstats (PNATState);
37 void udpstats (PNATState);
38 void icmpstats (PNATState);
39 void mbufstats (PNATState);
40 void sockstats (PNATState);
H A Dmain.h31 void if_encap(PNATState pData, uint16_t eth_proto, struct mbuf *m, int flags);
H A Dudp.h124 void udp_init (PNATState);
125 void udp_input (PNATState, register struct mbuf *, int);
126 int udp_output (PNATState, struct socket *, struct mbuf *, struct sockaddr_in *);
127 int udp_attach (PNATState, struct socket *);
128 void udp_detach (PNATState, struct socket *);
130 void udp_emu (PNATState, struct socket *, struct mbuf *);
131 struct socket * udp_listen (PNATState, u_int32_t, u_int, u_int32_t, u_int, int);
132 int udp_output2(PNATState pData, struct socket *so, struct mbuf *m,
H A Dsbuf.h49 void sbreserve (PNATState, struct sbuf *, int);
50 void sbappend (PNATState, struct socket *, struct mbuf *);
51 void sbappendsb (PNATState, struct sbuf *, struct mbuf *);
H A Dslirp.h285 void if_start (PNATState);
303 int get_dns_addr(PNATState pData);
311 void if_init (PNATState);
312 void if_output (PNATState, struct socket *, struct mbuf *);
315 void ip_init (PNATState);
316 void ip_input (PNATState, struct mbuf *);
317 struct mbuf * ip_reass (PNATState, register struct mbuf *);
318 void ip_freef (PNATState, struct ipqhead *, struct ipq_t *);
319 void ip_slowtimo (PNATState);
323 int ip_output (PNATState, struc
[all...]
H A Dip_icmp.h188 void icmp_input (PNATState, struct mbuf *, int);
189 void icmp_error (PNATState, struct mbuf *, u_char, u_char, int, const char *);
190 void icmp_reflect (PNATState, struct mbuf *);
201 int icmp_init (PNATState , int);
202 void icmp_finit (PNATState );
203 struct icmp_msg * icmp_find_original_mbuf (PNATState , struct ip *);
207 int icmpwin_init (PNATState);
208 void icmpwin_finit (PNATState);
209 void icmpwin_ping(PNATState, struct mbuf *, int);
210 void icmpwin_process(PNATState);
[all...]
H A Dsocket.h97 void (* so_timeout)(PNATState pData, struct socket *so, void *arg);
172 void sofree (PNATState, struct socket *);
173 int soread (PNATState, struct socket *);
174 void sorecvoob (PNATState, struct socket *);
176 int sowrite (PNATState, struct socket *);
177 void sorecvfrom (PNATState, struct socket *);
178 int sosendto (PNATState, struct socket *, struct mbuf *);
179 struct socket * solisten (PNATState, u_int32_t, u_int, u_int32_t, u_int, int);
195 struct socket * soCloneUDPSocketWithForegnAddr(PNATState pData, bool fBindSocket, struct socket *pSo, uint32_t u32ForeignAddr);
196 struct socket *soLookUpClonedUDPSocket(PNATState pDat
[all...]
H A Dext.h26 static inline uma_zone_t slirp_zone_mbuf(PNATState);
27 static inline uma_zone_t slirp_zone_clust(PNATState);
28 static inline uma_zone_t slirp_zone_pack(PNATState);
29 static inline uma_zone_t slirp_zone_jumbop(PNATState);
30 static inline uma_zone_t slirp_zone_jumbo9(PNATState);
31 static inline uma_zone_t slirp_zone_jumbo16(PNATState);
32 static inline uma_zone_t slirp_zone_ext_refcnt(PNATState);
H A Dtcp_timer.h151 void tcp_fasttimo (PNATState);
152 void tcp_slowtimo (PNATState);
H A Dbootp.h144 void bootp_input(PNATState, struct mbuf *m);
145 int bootp_cache_lookup_ip_by_ether(PNATState, const uint8_t *, uint32_t *);
146 int bootp_cache_lookup_ether_by_ip(PNATState, uint32_t, uint8_t *);
147 int bootp_dhcp_init(PNATState);
148 int bootp_dhcp_fini(PNATState);
H A Dzone.h34 PNATState pData; /* to minimize changes in the rest of UMA emulation code */
H A Dbootp.c63 static void bootp_reply(PNATState pData, struct mbuf *m0, int offReply, uint16_t flags);
87 static BOOTPClient *bc_alloc_client(PNATState pData)
109 static BOOTPClient *get_new_addr(PNATState pData, struct in_addr *paddr)
123 static int release_addr(PNATState pData, struct in_addr *paddr)
185 static BOOTPClient *find_addr(PNATState pData, struct in_addr *paddr, const uint8_t *macaddr)
208 static struct mbuf *dhcp_create_msg(PNATState pData, struct bootp_t *bp, struct mbuf *m, uint8_t type)
243 static int dhcp_do_ack_offer(PNATState pData, struct mbuf *m, BOOTPClient *bc, int fDhcpRequest)
352 static int dhcp_send_nack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m)
360 static int dhcp_send_ack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m, int fDhcpRequest)
369 static int dhcp_send_offer(PNATState pDat
[all...]
H A Dtftp.c132 DECLINLINE(int) tftpSecurityFilenameCheck(PNATState pData, PCTFTPSESSION pcTftpSession)
231 DECLINLINE(void) tftpSessionUpdate(PNATState pData, PTFTPSESSION pTftpSession)
336 static int tftpAllocateSession(PNATState pData, PCTFTPIPHDR pcTftpIpHeader, PPTFTPSESSION ppTftpSession)
372 static int tftpSessionFind(PNATState pData, PCTFTPIPHDR pcTftpIpHeader, PPTFTPSESSION ppTftpSessions)
400 DECLINLINE(int) pftpSessionOpenFile(PNATState pData, PTFTPSESSION pTftpSession, PRTFILE pSessionFile)
426 DECLINLINE(int) tftpSessionEvaluateOptions(PNATState pData, PTFTPSESSION pTftpSession)
461 DECLINLINE(int) tftpSend(PNATState pData,
482 DECLINLINE(int) tftpSendError(PNATState pData, PTFTPSESSION pTftpSession, uint16_t errorcode, const char *msg, PCTFTPIPHDR pcTftpIpHeaderRecv);
484 DECLINLINE(int) tftpReadDataBlock(PNATState pData,
537 DECLINLINE(int) tftpAddOptionToOACK(PNATState pDat
[all...]
H A Dslirp.c263 static void activate_port_forwarding(PNATState, const uint8_t *pEther);
285 static int slirpVerifyAndFreeSocket(PNATState pData, struct socket *pSocket)
300 int slirp_init(PNATState *ppData, uint32_t u32NetAddr, uint32_t u32Netmask,
305 PNATState pData;
429 void slirp_register_statistics(PNATState pData, PPDMDRVINS pDrvIns)
448 void slirp_deregister_statistics(PNATState pData, PPDMDRVINS pDrvIns)
465 void slirp_link_up(PNATState pData)
489 void slirp_link_down(PNATState pData)
529 void slirp_term(PNATState pData)
595 static void updtime(PNATState pDat
[all...]
H A Dtcp_timer.c59 static struct tcpcb *tcp_timers(PNATState pData, register struct tcpcb *tp, int timer);
64 tcp_fasttimo(PNATState pData)
93 tcp_slowtimo(PNATState pData)
158 tcp_timers(PNATState pData, register struct tcpcb *tp, int timer)
/vbox/src/VBox/Devices/Network/slirp/dnsproxy/
H A Ddnsproxy.h130 void hash_add_request(PNATState, struct request *);
131 void hash_remove_request(PNATState, struct request *);
132 struct request *hash_find_request(PNATState, unsigned short);
135 int add_internal(PNATState, char *);
136 int is_internal(PNATState, struct in_addr);
152 int dnsproxy_init(PNATState pData);
153 void dnsproxy_query(PNATState pData, struct socket *so, struct mbuf *m, int iphlen);
154 void dnsproxy_answer(PNATState pData, struct socket *so, struct mbuf *m);
H A Dhash.c37 hash_add_request(PNATState pData, struct request *req)
53 hash_remove_request(PNATState pData, struct request *req)
65 hash_find_request(PNATState pData, unsigned short id)
/vbox/src/VBox/Devices/Network/slirp/libalias/
H A Dalias_mod.h119 int LibAliasAttachHandlers(PNATState pData, struct proto_handler *);
120 int LibAliasDetachHandlers(PNATState pData, struct proto_handler *);
121 int detach_handler(PNATState pData, struct proto_handler *);
122 struct proto_handler *first_handler(PNATState pData);
H A Dalias_mod.c155 _attach_handler(PNATState pData, struct proto_handler *p)
187 _detach_handler(PNATState pData, struct proto_handler *p)
206 LibAliasAttachHandlers(PNATState pData, struct proto_handler *_p)
231 LibAliasDetachHandlers(PNATState pData, struct proto_handler *_p)
256 detach_handler(PNATState pData, struct proto_handler *_p)
278 PNATState pData = la->pData;
298 first_handler(PNATState pData)
/vbox/src/VBox/Devices/Network/slirp/bsd/sys/
H A Dmbuf.h433 static __inline struct mbuf *m_getcl(PNATState pData, int how, short type, int flags);
434 static __inline struct mbuf *m_get(PNATState pData, int how, short type);
435 static __inline struct mbuf *m_gethdr(PNATState pData, int how, short type);
436 static __inline struct mbuf *m_getjcl(PNATState pData, int how,
438 static __inline struct mbuf *m_getclr(PNATState pData, int how, short type); /* XXX */
439 static __inline struct mbuf *m_free(PNATState pData, struct mbuf *m);
440 static __inline void m_clget(PNATState pData, struct mbuf *m, int how);
441 static __inline void *m_cljget(PNATState pData, struct mbuf *m, int how, int size);
442 void mb_free_ext(PNATState, struct mbuf *);
481 m_getzone(PNATState pDat
[all...]
/vbox/src/VBox/Devices/Network/slirp/bsd/kern/
H A Dkern_mbuf.c122 PNATState pData = (PNATState)dummy;
248 static int mb_ctor_mbuf(PNATState, void *, int, void *, int);
249 static int mb_ctor_clust(PNATState, void *, int, void *, int);
250 static int mb_ctor_pack(PNATState, void *, int, void *, int);
251 static void mb_dtor_mbuf(PNATState, void *, int, void *);
252 static void mb_dtor_clust(PNATState, void *, int, void *);
253 static void mb_dtor_pack(PNATState, void *, int, void *);
254 static int mb_zinit_pack(PNATState, void *, int, int);
255 static void mb_zfini_pack(PNATState, voi
[all...]

Completed in 106 milliseconds

12