(family uint8, resID uint16)
| 23 | ) |
| 24 | |
| 25 | func extraHeader(family uint8, resID uint16) []byte { |
| 26 | return append([]byte{ |
| 27 | family, |
| 28 | unix.NFNETLINK_V0, |
| 29 | }, binaryutil.BigEndian.PutUint16(resID)...) |
| 30 | } |
| 31 | |
| 32 | // General form of address family dependent message, see |
| 33 | // https://git.netfilter.org/libnftnl/tree/include/linux/netfilter/nfnetlink.h#29 |
no test coverage detected
searching dependent graphs…