slip.h 419 B

123456789101112131415161718192021
  1. #ifndef __UM_SLIP_H
  2. #define __UM_SLIP_H
  3. #include "slip_common.h"
  4. struct slip_data {
  5. void *dev;
  6. char name[sizeof("slnnnnn\0")];
  7. char *addr;
  8. char *gate_addr;
  9. int slave;
  10. struct slip_proto slip;
  11. };
  12. extern const struct net_user_info slip_user_info;
  13. extern int slip_user_read(int fd, void *buf, int len, struct slip_data *pri);
  14. extern int slip_user_write(int fd, void *buf, int len, struct slip_data *pri);
  15. #endif