netlink_unspecified.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // +build !linux
  2. package netlink
  3. import (
  4. "errors"
  5. )
  6. var (
  7. ErrNotImplemented = errors.New("not implemented")
  8. )
  9. func LinkSetUp(link *Link) error {
  10. return ErrNotImplemented
  11. }
  12. func LinkSetDown(link *Link) error {
  13. return ErrNotImplemented
  14. }
  15. func LinkSetMTU(link *Link, mtu int) error {
  16. return ErrNotImplemented
  17. }
  18. func LinkSetMaster(link *Link, master *Link) error {
  19. return ErrNotImplemented
  20. }
  21. func LinkSetNsPid(link *Link, nspid int) error {
  22. return ErrNotImplemented
  23. }
  24. func LinkSetNsFd(link *Link, fd int) error {
  25. return ErrNotImplemented
  26. }
  27. func LinkAdd(link *Link) error {
  28. return ErrNotImplemented
  29. }
  30. func LinkDel(link *Link) error {
  31. return ErrNotImplemented
  32. }
  33. func SetHairpin(link Link, mode bool) error {
  34. return ErrNotImplemented
  35. }
  36. func SetGuard(link Link, mode bool) error {
  37. return ErrNotImplemented
  38. }
  39. func SetFastLeave(link Link, mode bool) error {
  40. return ErrNotImplemented
  41. }
  42. func SetLearning(link Link, mode bool) error {
  43. return ErrNotImplemented
  44. }
  45. func SetRootBlock(link Link, mode bool) error {
  46. return ErrNotImplemented
  47. }
  48. func SetFlood(link Link, mode bool) error {
  49. return ErrNotImplemented
  50. }
  51. func LinkList() ([]Link, error) {
  52. return nil, ErrNotImplemented
  53. }
  54. func AddrAdd(link *Link, addr *Addr) error {
  55. return ErrNotImplemented
  56. }
  57. func AddrDel(link *Link, addr *Addr) error {
  58. return ErrNotImplemented
  59. }
  60. func AddrList(link *Link, family int) ([]Addr, error) {
  61. return nil, ErrNotImplemented
  62. }
  63. func RouteAdd(route *Route) error {
  64. return ErrNotImplemented
  65. }
  66. func RouteDel(route *Route) error {
  67. return ErrNotImplemented
  68. }
  69. func RouteList(link *Link, family int) ([]Route, error) {
  70. return nil, ErrNotImplemented
  71. }
  72. func XfrmPolicyAdd(policy *XfrmPolicy) error {
  73. return ErrNotImplemented
  74. }
  75. func XfrmPolicyDel(policy *XfrmPolicy) error {
  76. return ErrNotImplemented
  77. }
  78. func XfrmPolicyList(family int) ([]XfrmPolicy, error) {
  79. return nil, ErrNotImplemented
  80. }
  81. func XfrmStateAdd(policy *XfrmState) error {
  82. return ErrNotImplemented
  83. }
  84. func XfrmStateDel(policy *XfrmState) error {
  85. return ErrNotImplemented
  86. }
  87. func XfrmStateList(family int) ([]XfrmState, error) {
  88. return nil, ErrNotImplemented
  89. }
  90. func NeighAdd(neigh *Neigh) error {
  91. return ErrNotImplemented
  92. }
  93. func NeighSet(neigh *Neigh) error {
  94. return ErrNotImplemented
  95. }
  96. func NeighAppend(neigh *Neigh) error {
  97. return ErrNotImplemented
  98. }
  99. func NeighDel(neigh *Neigh) error {
  100. return ErrNotImplemented
  101. }
  102. func NeighList(linkIndex, family int) ([]Neigh, error) {
  103. return nil, ErrNotImplemented
  104. }
  105. func NeighDeserialize(m []byte) (*Ndmsg, *Neigh, error) {
  106. return nil, nil, ErrNotImplemented
  107. }