You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

netbios.h 589B

123456789101112131415161718192021222324252627282930
  1. #ifndef _IPXE_NETBIOS_H
  2. #define _IPXE_NETBIOS_H
  3. /** @file
  4. *
  5. * NetBIOS user names
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. extern const char * netbios_domain ( char **username );
  10. /**
  11. * Restore NetBIOS [domain\]username
  12. *
  13. * @v domain NetBIOS domain name
  14. * @v username NetBIOS user name
  15. *
  16. * Restore the separator in a NetBIOS [domain\]username as split by
  17. * netbios_domain().
  18. */
  19. static inline void netbios_domain_undo ( const char *domain, char *username ) {
  20. /* Restore separator, if applicable */
  21. if ( domain )
  22. username[-1] = '\\';
  23. }
  24. #endif /* _IPXE_NETBIOS_H */