1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/* udp.h
*/
#ifndef _SENDIP_UDP_H
#define _SENDIP_UDP_H
/* UDP HEADER
*/
typedef struct {
u_int16_t source;
u_int16_t dest;
u_int16_t len;
u_int16_t check;
} udp_header;
/* Defines for which parts have been modified
*/
#define UDP_MOD_SOURCE 1
#define UDP_MOD_DEST 1<<1
#define UDP_MOD_LEN 1<<2
#define UDP_MOD_CHECK 1<<3
/* Options
*/
sendip_option udp_opts[] = {
{"s",1,"UDP source port","0"},
{"d",1,"UDP destination port","0"},
{"l",1,"UDP packet legnth","Correct"},
{"c",1,"UDP checksum","Correct"}
};
#endif /* _SENDIP_UDP_H */
|