MODULE_LICENSE("GPL"); #include #define WSMP_HDR_SIZE 16 #ifndef AF_WSMP #define AF_WSMP 44 #define PF_WSMP AF_WSMP #endif #define wsmp_sk(__sk) ((struct wsmp_sock *) __sk) struct wsmp_sock { struct inet_sock inet; struct list_head accept_q; u16 wsmp_heder_length; __be16 num; //protocol number }; extern struct proto_ops wsmp_sock_ops; struct wsmphdr { __u8 wsm_version; __u8 security_type; __u8 cno; __u8 data_rate; __u8 tx_pow_level; __u32 psid; __u16 wsm_length; uint8_t *data; }; struct sockaddr_wsmp { __u16 sin_family; __u8 wsm_version; __u8 security_type; __u8 cno; __u8 data_rate; __u8 tx_pow_level; __u32 psid; __u16 wsm_length; };