@@ -554,7 +554,7 @@ struct
554554 let tcp_stack = { endpoint; udp_nat; dns_ips } in
555555 let open Lwt.Infix in
556556 (* Wire up the listeners to receive future packets: *)
557- Switch.Port. listen ~header_size: Ethernet_wire . sizeof_ethernet endpoint.Endpoint. netif
557+ Switch.Port. listen ~header_size: Ethernet.Packet . sizeof_ethernet endpoint.Endpoint. netif
558558 (fun buf ->
559559 let open Frame in
560560 match parse [ buf ] with
@@ -681,7 +681,7 @@ struct
681681 let tcp_stack = { endpoint; udp_nat; dns_ips; localhost_names; localhost_ips } in
682682 let open Lwt.Infix in
683683 (* Wire up the listeners to receive future packets: *)
684- Switch.Port. listen ~header_size: Ethernet_wire . sizeof_ethernet endpoint.Endpoint. netif
684+ Switch.Port. listen ~header_size: Ethernet.Packet . sizeof_ethernet endpoint.Endpoint. netif
685685 (fun buf ->
686686 let open Frame in
687687 match parse [ buf ] with
@@ -780,7 +780,7 @@ struct
780780 let tcp_stack = { endpoint; udp_nat; icmp_nat; localhost_names; localhost_ips } in
781781 let open Lwt.Infix in
782782 (* Wire up the listeners to receive future packets: *)
783- Switch.Port. listen ~header_size: Ethernet_wire . sizeof_ethernet endpoint.Endpoint. netif
783+ Switch.Port. listen ~header_size: Ethernet.Packet . sizeof_ethernet endpoint.Endpoint. netif
784784 (fun buf ->
785785 let open Frame in
786786 match parse [ buf ] with
@@ -1130,7 +1130,7 @@ struct
11301130 vnet_client_id
11311131 (Macaddr. to_string eth_src)
11321132 (Macaddr. to_string eth_dst));
1133- (Switch. write ~size: Ethernet_wire . sizeof_ethernet switch (fun toBuf ->
1133+ (Switch. write ~size: Ethernet.Packet . sizeof_ethernet switch (fun toBuf ->
11341134 Cstruct. blit buf 0 toBuf 0 (Cstruct. length buf);
11351135 Cstruct. length buf)
11361136 > |= function
@@ -1144,7 +1144,7 @@ struct
11441144 Log. info (fun f ->
11451145 f " Client mac: %s server mac: %s"
11461146 (Macaddr. to_string client_macaddr) (Macaddr. to_string c.Configuration. server_macaddr));
1147- Switch. listen switch ~header_size: Ethernet_wire . sizeof_ethernet (fun buf ->
1147+ Switch. listen switch ~header_size: Ethernet.Packet . sizeof_ethernet (fun buf ->
11481148 let open Frame in
11491149 match parse [ buf ] with
11501150 | Ok (Ethernet { src = eth_src ; dst = eth_dst ; _ }) when
@@ -1157,7 +1157,7 @@ struct
11571157 (Macaddr. to_string eth_src) (Macaddr. to_string eth_dst));
11581158 (* pass to virtual network *)
11591159 begin
1160- Vnet. write vnet_switch t.vnet_client_id ~size: Ethernet_wire . sizeof_ethernet (fun toBuf ->
1160+ Vnet. write vnet_switch t.vnet_client_id ~size: Ethernet.Packet . sizeof_ethernet (fun toBuf ->
11611161 Cstruct. blit buf 0 toBuf 0 (Cstruct. length buf);
11621162 Cstruct. length buf)
11631163 > |= function
@@ -1190,7 +1190,7 @@ struct
11901190 |> Lwt. return)
11911191 end
11921192 >> = fun arp ->
1193- Global_arp. input arp (Cstruct. shift buf Ethernet_wire . sizeof_ethernet)
1193+ Global_arp. input arp (Cstruct. shift buf Ethernet.Packet . sizeof_ethernet)
11941194 | Ok (Ethernet { payload = Ipv4 ({ src; dst; _ } as ipv4 ); _ } ) ->
11951195 (* For any new IP destination, create a stack to proxy for
11961196 the remote system *)
0 commit comments