• Home
  • Raw
  • Download

Lines Matching refs:prog

12 func (arch *arch) generateIptables(g *prog.Gen, typ prog.Type, old prog.Arg) (
13 arg prog.Arg, calls []*prog.Call) {
17 func (arch *arch) generateArptables(g *prog.Gen, typ prog.Type, old prog.Arg) (
18 arg prog.Arg, calls []*prog.Call) {
22 func (arch *arch) generateNetfilterTable(g *prog.Gen, typ prog.Type, old prog.Arg,
23 hasUnion bool, hookCount int) (arg prog.Arg, calls []*prog.Call) {
37 var tableArg *prog.GroupArg
39 tableArg = arg.(*prog.UnionArg).Option.(*prog.GroupArg)
41 tableArg = arg.(*prog.GroupArg)
47 entriesArg := tableArg.Inner[numFileds-1].(*prog.GroupArg)
51 entriesArray := entriesArg.Inner[0].(*prog.GroupArg)
72 hookArg := tableArg.Inner[hook].(*prog.ConstArg)
73 if hookArg.Type().(*prog.ConstType).Val == unused {
80 hookArg := tableArg.Inner[hook].(*prog.ConstArg)
81 if hookArg.Type().(*prog.ConstType).Val == unused {
87 prog.ForeachSubArg(arg, func(arg prog.Arg, _ *prog.ArgCtx) {
91 targetArg := arg.(*prog.GroupArg)
92 valArg := targetArg.Inner[3].(*prog.ConstArg)
93 flagsType, ok := valArg.Type().(*prog.FlagsType)
109 func (arch *arch) generateEbtables(g *prog.Gen, typ prog.Type, old prog.Arg) (
110 arg prog.Arg, calls []*prog.Call) {
127 tableArg := arg.(*prog.UnionArg).Option.(*prog.GroupArg)
128 entriesPtr := tableArg.Inner[entriesField].(*prog.PointerArg)
129 entriesArray := entriesPtr.Res.(*prog.GroupArg)
133 entriesArg := entriesArg0.(*prog.GroupArg)
134 arrayArg := entriesArg.Inner[len(entriesArg.Inner)-1].(*prog.GroupArg)
135 entriesArg.Inner[2].(*prog.ConstArg).Val = totalEntries
140 tableArg.Inner[2].(*prog.ConstArg).Val = totalEntries
145 validHooks := tableArg.Inner[1].(*prog.ConstArg).Val
146 hooksArg := tableArg.Inner[hooksField].(*prog.GroupArg)
148 hookArg := hookArg0.(*prog.ConstArg)
164 func (arch *arch) sanitizeEbtables(c *prog.Call) {
167 lenArg := c.Args[4].(*prog.ConstArg)
168 tableArg := c.Args[3].(*prog.PointerArg).Res.(*prog.UnionArg).Option.(*prog.GroupArg)
170 entriesArg := tableArg.Inner[entriesField].(*prog.PointerArg).Res