syscall.go 928 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package nl
  2. // syscall package lack of rule atributes type.
  3. // Thus there are defined below
  4. const (
  5. FRA_UNSPEC = iota
  6. FRA_DST /* destination address */
  7. FRA_SRC /* source address */
  8. FRA_IIFNAME /* interface name */
  9. FRA_GOTO /* target to jump to (FR_ACT_GOTO) */
  10. FRA_UNUSED2
  11. FRA_PRIORITY /* priority/preference */
  12. FRA_UNUSED3
  13. FRA_UNUSED4
  14. FRA_UNUSED5
  15. FRA_FWMARK /* mark */
  16. FRA_FLOW /* flow/class id */
  17. FRA_TUN_ID
  18. FRA_SUPPRESS_IFGROUP
  19. FRA_SUPPRESS_PREFIXLEN
  20. FRA_TABLE /* Extended table id */
  21. FRA_FWMASK /* mask for netfilter mark */
  22. FRA_OIFNAME
  23. )
  24. // ip rule netlink request types
  25. const (
  26. FR_ACT_UNSPEC = iota
  27. FR_ACT_TO_TBL /* Pass to fixed table */
  28. FR_ACT_GOTO /* Jump to another rule */
  29. FR_ACT_NOP /* No operation */
  30. FR_ACT_RES3
  31. FR_ACT_RES4
  32. FR_ACT_BLACKHOLE /* Drop without notification */
  33. FR_ACT_UNREACHABLE /* Drop with ENETUNREACH */
  34. FR_ACT_PROHIBIT /* Drop with EACCES */
  35. )