GetMode gets int mode from Version+Mode 8bit word
()
| 305 | |
| 306 | // GetMode gets int mode from Version+Mode 8bit word |
| 307 | func (n NTPControlMsgHead) GetMode() int { |
| 308 | return int(n.VnMode & 0x7) // get last 3 bits |
| 309 | } |
| 310 | |
| 311 | // IsResponse returns true if packet is a response |
| 312 | func (n NTPControlMsgHead) IsResponse() bool { |
no outgoing calls