Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newrefattr (0.12 sec)

  1. src/cmd/link/internal/ld/dwarf.go

    		} else {
    			s = d.typeRuntimeIface
    		}
    		d.newrefattr(die, dwarf.DW_AT_type, d.defgotype(s))
    
    	case abi.Map:
    		die = d.newdie(&dwtypes, dwarf.DW_ABRV_MAPTYPE, name)
    		s := decodetypeMapKey(d.ldr, d.arch, gotype)
    		d.newrefattr(die, dwarf.DW_AT_go_key, d.defgotype(s))
    		s = decodetypeMapValue(d.ldr, d.arch, gotype)
    		d.newrefattr(die, dwarf.DW_AT_go_elem, d.defgotype(s))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  2. pkg/proxy/util/nfacct/nfacct_linux.go

    		return ErrEmptyName
    	}
    	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)
  3. 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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top