- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ZeroTerminated (0.11 sec)
-
pkg/proxy/util/nfacct/nfacct_linux.go
} if len(name) > MaxLength { return ErrNameExceedsMaxLength } req := r.handler.newRequest(cmdNew, unix.NLM_F_REQUEST|unix.NLM_F_CREATE|unix.NLM_F_ACK) req.AddData(nl.NewRtAttr(attrName, nl.ZeroTerminated(name))) _, err := req.Execute(unix.NETLINK_NETFILTER, 0) if err != nil { return handleError(err) } return nil } // Get is part of the interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
// validate attribute(NFACCT_NAME) assert.Equal(t, 1, len(tc.handler.requests[0].data)) assert.Equal(t, tc.handler.requests[0].data[0].Serialize(), nl.NewRtAttr(attrName, nl.ZeroTerminated(tc.counterName)).Serialize(), ) } }) } } func TestRunner_Get(t *testing.T) { testCases := []struct { name string counterName string counter *Counter
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0)