Skip to content

Commit

Permalink
packet: SCPacketSetDatalink function
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Oct 9, 2024
1 parent 525fe96 commit 70d1955
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,8 @@ void SCPacketSetLiveDevice(Packet *p, LiveDevice *device)
{
p->livedev = device;
}

void SCPacketSetDatalink(Packet *p, int datalink)
{
p->datalink = datalink;
}
3 changes: 3 additions & 0 deletions src/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ void SCPacketSetReleasePacket(Packet *p, void (*ReleasePacket)(Packet *p));
/** \brief Set a packets live device. */
void SCPacketSetLiveDevice(Packet *p, LiveDevice *device);

/** \brief Set a packets data link type. */
void SCPacketSetDatalink(Packet *p, int datalink);

#endif

0 comments on commit 70d1955

Please sign in to comment.