diff options
| author | Robby Zambito <contact@robbyzambito.me> | 2026-04-15 19:44:48 -0400 |
|---|---|---|
| committer | Tangled <noreply@tangled.org> | 2026-04-16 04:56:23 +0300 |
| commit | 7077aae9ceedc48fd5329f204163f1fbdd9d0ba8 (patch) | |
| tree | 9e60bba563b40c936f7ad330fca5f263d18af2d8 /src/Client.zig | |
| parent | 1f500b9b0a9999dafbbb01d57a9574b0537deedc (diff) | |
fix: convert MacAddr from vector to int
Still expose a vector / slice API with .fromSlice,
Diffstat (limited to 'src/Client.zig')
| -rw-r--r-- | src/Client.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Client.zig b/src/Client.zig index 2344f83..cbe4d17 100644 --- a/src/Client.zig +++ b/src/Client.zig @@ -46,7 +46,7 @@ pub fn sendRelay(self: *Client, io: Io, payload: []const u8, dest: [4]u8) !void const rand = io_source.interface(); var headers: EthIpUdp = .{ - .src_mac = self.socket.mac, + .src_mac = .fromSlice(self.socket.mac), .ip = .{ .id = rand.int(u16), .src_addr = 0, //rand.int(u32), @@ -86,7 +86,7 @@ pub fn connect(self: Client, io: Io, payload: []const u8) (error{ BpfAttachFaile const rand = io_source.interface(); var headers: EthIpUdp = .{ - .src_mac = self.socket.mac, + .src_mac = .fromSlice(self.socket.mac), .ip = .{ .id = rand.int(u16), .src_addr = 0, //rand.int(u32), |
