… | |
… | |
51 | char *identname; |
51 | char *identname; |
52 | char *pidfilename; |
52 | char *pidfilename; |
53 | |
53 | |
54 | struct configuration conf; |
54 | struct configuration conf; |
55 | |
55 | |
|
|
56 | u8 best_protocol (u8 protset) |
|
|
57 | { |
|
|
58 | if (protset & PROT_IPv4) |
|
|
59 | return PROT_IPv4; |
|
|
60 | |
|
|
61 | return PROT_UDPv4; |
|
|
62 | } |
|
|
63 | |
|
|
64 | const char *strprotocol (u8 protocol) |
|
|
65 | { |
|
|
66 | if (protocol & PROT_IPv4 ) return "rawip"; |
|
|
67 | if (protocol & PROT_UDPv4) return "udp"; |
|
|
68 | |
|
|
69 | return "<unknown>"; |
|
|
70 | } |
|
|
71 | |
56 | configuration::configuration () |
72 | configuration::configuration () |
57 | { |
73 | { |
58 | init (); |
74 | init (); |
59 | } |
75 | } |
60 | |
76 | |