File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -734,6 +734,10 @@ impl Interface {
734
734
Packet :: new ( ip, IpPayload :: Udp ( udp, dns) ) ,
735
735
)
736
736
} ) ,
737
+ #[ cfg( feature = "socket-eth" ) ]
738
+ Socket :: Eth ( _socket) => {
739
+ todo ! ( ) ;
740
+ }
737
741
} ;
738
742
739
743
match result {
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ pub enum Socket<'a> {
71
71
Dhcpv4 ( dhcpv4:: Socket < ' a > ) ,
72
72
#[ cfg( feature = "socket-dns" ) ]
73
73
Dns ( dns:: Socket < ' a > ) ,
74
+ #[ cfg( feature = "socket-eth" ) ]
75
+ Eth ( eth:: Socket < ' a > ) ,
74
76
}
75
77
76
78
impl < ' a > Socket < ' a > {
@@ -88,6 +90,8 @@ impl<'a> Socket<'a> {
88
90
Socket :: Dhcpv4 ( s) => s. poll_at ( cx) ,
89
91
#[ cfg( feature = "socket-dns" ) ]
90
92
Socket :: Dns ( s) => s. poll_at ( cx) ,
93
+ #[ cfg( feature = "socket-eth" ) ]
94
+ Socket :: Eth ( s) => s. poll_at ( cx) ,
91
95
}
92
96
}
93
97
}
@@ -141,3 +145,5 @@ from_socket!(tcp::Socket<'a>, Tcp);
141
145
from_socket ! ( dhcpv4:: Socket <' a>, Dhcpv4 ) ;
142
146
#[ cfg( feature = "socket-dns" ) ]
143
147
from_socket ! ( dns:: Socket <' a>, Dns ) ;
148
+ #[ cfg( feature = "socket-eth" ) ]
149
+ from_socket ! ( eth:: Socket <' a>, Eth ) ;
You can’t perform that action at this time.
0 commit comments