netlink_unspecified.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. // +build !linux
  2. package netlink
  3. import "net"
  4. func LinkSetUp(link Link) error {
  5. return ErrNotImplemented
  6. }
  7. func LinkSetDown(link Link) error {
  8. return ErrNotImplemented
  9. }
  10. func LinkSetMTU(link Link, mtu int) error {
  11. return ErrNotImplemented
  12. }
  13. func LinkSetMaster(link Link, master *Bridge) error {
  14. return ErrNotImplemented
  15. }
  16. func LinkSetNsPid(link Link, nspid int) error {
  17. return ErrNotImplemented
  18. }
  19. func LinkSetNsFd(link Link, fd int) error {
  20. return ErrNotImplemented
  21. }
  22. func LinkSetName(link Link, name string) error {
  23. return ErrNotImplemented
  24. }
  25. func LinkSetAlias(link Link, name string) error {
  26. return ErrNotImplemented
  27. }
  28. func LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error {
  29. return ErrNotImplemented
  30. }
  31. func LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error {
  32. return ErrNotImplemented
  33. }
  34. func LinkSetVfVlan(link Link, vf, vlan int) error {
  35. return ErrNotImplemented
  36. }
  37. func LinkSetVfTxRate(link Link, vf, rate int) error {
  38. return ErrNotImplemented
  39. }
  40. func LinkSetNoMaster(link Link) error {
  41. return ErrNotImplemented
  42. }
  43. func LinkSetMasterByIndex(link Link, masterIndex int) error {
  44. return ErrNotImplemented
  45. }
  46. func LinkSetXdpFd(link Link, fd int) error {
  47. return ErrNotImplemented
  48. }
  49. func LinkSetARPOff(link Link) error {
  50. return ErrNotImplemented
  51. }
  52. func LinkSetARPOn(link Link) error {
  53. return ErrNotImplemented
  54. }
  55. func LinkByName(name string) (Link, error) {
  56. return nil, ErrNotImplemented
  57. }
  58. func LinkByAlias(alias string) (Link, error) {
  59. return nil, ErrNotImplemented
  60. }
  61. func LinkByIndex(index int) (Link, error) {
  62. return nil, ErrNotImplemented
  63. }
  64. func LinkSetHairpin(link Link, mode bool) error {
  65. return ErrNotImplemented
  66. }
  67. func LinkSetGuard(link Link, mode bool) error {
  68. return ErrNotImplemented
  69. }
  70. func LinkSetFastLeave(link Link, mode bool) error {
  71. return ErrNotImplemented
  72. }
  73. func LinkSetLearning(link Link, mode bool) error {
  74. return ErrNotImplemented
  75. }
  76. func LinkSetRootBlock(link Link, mode bool) error {
  77. return ErrNotImplemented
  78. }
  79. func LinkSetFlood(link Link, mode bool) error {
  80. return ErrNotImplemented
  81. }
  82. func LinkAdd(link Link) error {
  83. return ErrNotImplemented
  84. }
  85. func LinkDel(link Link) error {
  86. return ErrNotImplemented
  87. }
  88. func SetHairpin(link Link, mode bool) error {
  89. return ErrNotImplemented
  90. }
  91. func SetGuard(link Link, mode bool) error {
  92. return ErrNotImplemented
  93. }
  94. func SetFastLeave(link Link, mode bool) error {
  95. return ErrNotImplemented
  96. }
  97. func SetLearning(link Link, mode bool) error {
  98. return ErrNotImplemented
  99. }
  100. func SetRootBlock(link Link, mode bool) error {
  101. return ErrNotImplemented
  102. }
  103. func SetFlood(link Link, mode bool) error {
  104. return ErrNotImplemented
  105. }
  106. func LinkList() ([]Link, error) {
  107. return nil, ErrNotImplemented
  108. }
  109. func AddrAdd(link Link, addr *Addr) error {
  110. return ErrNotImplemented
  111. }
  112. func AddrDel(link Link, addr *Addr) error {
  113. return ErrNotImplemented
  114. }
  115. func AddrList(link Link, family int) ([]Addr, error) {
  116. return nil, ErrNotImplemented
  117. }
  118. func RouteAdd(route *Route) error {
  119. return ErrNotImplemented
  120. }
  121. func RouteDel(route *Route) error {
  122. return ErrNotImplemented
  123. }
  124. func RouteList(link Link, family int) ([]Route, error) {
  125. return nil, ErrNotImplemented
  126. }
  127. func XfrmPolicyAdd(policy *XfrmPolicy) error {
  128. return ErrNotImplemented
  129. }
  130. func XfrmPolicyDel(policy *XfrmPolicy) error {
  131. return ErrNotImplemented
  132. }
  133. func XfrmPolicyList(family int) ([]XfrmPolicy, error) {
  134. return nil, ErrNotImplemented
  135. }
  136. func XfrmStateAdd(policy *XfrmState) error {
  137. return ErrNotImplemented
  138. }
  139. func XfrmStateDel(policy *XfrmState) error {
  140. return ErrNotImplemented
  141. }
  142. func XfrmStateList(family int) ([]XfrmState, error) {
  143. return nil, ErrNotImplemented
  144. }
  145. func NeighAdd(neigh *Neigh) error {
  146. return ErrNotImplemented
  147. }
  148. func NeighSet(neigh *Neigh) error {
  149. return ErrNotImplemented
  150. }
  151. func NeighAppend(neigh *Neigh) error {
  152. return ErrNotImplemented
  153. }
  154. func NeighDel(neigh *Neigh) error {
  155. return ErrNotImplemented
  156. }
  157. func NeighList(linkIndex, family int) ([]Neigh, error) {
  158. return nil, ErrNotImplemented
  159. }
  160. func NeighDeserialize(m []byte) (*Neigh, error) {
  161. return nil, ErrNotImplemented
  162. }
  163. func SocketGet(local, remote net.Addr) (*Socket, error) {
  164. return nil, ErrNotImplemented
  165. }