#include "packet.h" char* nbt_tftp_error_to_message(nbt_tftp_ecode error) { switch (error) { case 0: return "ERROR"; case 1: return "File not Found"; case 2: return "Access violation"; case 3: return "Disk full or allocation exceeded"; case 4: return "Illegal TFTP operation"; case 5: return "Unknown Transfer ID"; case 6: return "File already exists"; case 7: return "No such user"; } return "UNKNOWN ERROR"; }