1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/bootrom/bootram/net/udp.h
2024-07-22 01:58:46 -03:00

25 lines
488 B
C
Executable File

#ifndef __UDP_H
#define __UDP_H
#define TFTP 0x45
/*
* This structure defines an udp header.
*/
struct udphdr {
unsigned short source;
unsigned short dest;
unsigned short len;
unsigned short check;
}__attribute__ ((packed));
int udp_init(void);
int udp_rcv_packet(sk_buff *skb);
int udp_send(sk_buff *skb, unsigned long ip,
unsigned short source, unsigned short dest);
void udp_skb_reserve(sk_buff *skb);
unsigned short udp_get_source_port(sk_buff *skb);
#endif /* __UDP_H */