Watt-32 tcp/ip  2.2 dev-rel.10
ip4_out.h
Go to the documentation of this file.
1 
3 #ifndef _w32_IP_OUT_H
4 #define _w32_IP_OUT_H
5 
6 extern BOOL _ip4_dont_frag;
7 extern int _ip4_id_increment;
8 extern int _default_ttl;
9 extern BYTE _default_tos;
11 extern WORD _get_ip4_id (void);
12 extern WORD _get_this_ip4_id (void);
13 
14 extern int _ip4_output (in_Header *ip, DWORD src_ip, DWORD dst_ip,
15  BYTE protocol, BYTE ttl, BYTE tos, WORD ip_id,
16  int data_len, const void *sock,
17  const char *file, unsigned line);
18 
19 #define IP4_OUTPUT(ip, src, dst, proto, ttl, tos, ip_id, data_len, sock) \
20  _ip4_output(ip, src, dst, proto, ttl, tos, ip_id, data_len, sock, \
21  __FILE__, __LINE__)
22 
23 
24 #if defined(USE_FRAGMENTS)
25  int _ip4_send_fragments (sock_type *sk, BYTE proto, DWORD dest,
26  const void *buf, unsigned len, const char *file,
27  unsigned line);
28 
29  #define _IP4_SEND_FRAGMENTS(sk, proto, dest, buf, len) \
30  _ip4_send_fragments(sk, proto, dest, buf, len, __FILE__, __LINE__)
31 #endif
32 
33 #endif
WORD _get_this_ip4_id(void)
Return IPv4-identifier but don't increment it.
Definition: ip4_out.c:74
WORD _get_ip4_id(void)
Increment IPv4-identifier before returning it.
Definition: ip4_out.c:65
int _ip4_id_increment
Definition: ip4_out.c:55
int _default_ttl
Definition: ip4_out.c:54
Definition: ip.h:67
BYTE _default_tos
Definition: ip4_out.c:53
BOOL _ip4_dont_frag
Definition: ip4_out.c:56
int _ip4_send_fragments(sock_type *sk, BYTE proto, DWORD dest, const void *buf, unsigned len, const char *file, unsigned line)
Definition: ip4_out.c:235
int _ip4_output(in_Header *ip, DWORD src_ip, DWORD dst_ip, BYTE protocol, BYTE ttl, BYTE tos, WORD ip_id, int data_len, const void *sock, const char *file, unsigned line)
The IP4 packet transmitter.
Definition: ip4_out.c:86