Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNET Chnls: deterministic protocol finding #375

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cnet-protosw: conform cnet_protosw_find prototype with channel prototype
Signed-off-by: Jalal Mostafa <jalal.a.mostapha@gmail.com>
jalalmostafa committed Jul 11, 2024
commit d431e6113f9a44e3458915fae9221fb311bd85cf
2 changes: 1 addition & 1 deletion lib/cnet/protosw/cnet_protosw.c
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ cnet_protosw_match(uint16_t domain, uint16_t type, uint16_t proto)
}

struct protosw_entry *
cnet_protosw_find(uint16_t domain, uint16_t type, uint16_t proto)
cnet_protosw_find(int domain, int type, int proto)
{
struct protosw_entry *p;

2 changes: 1 addition & 1 deletion lib/cnet/protosw/cnet_protosw.h
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ CNDP_API struct protosw_entry *cnet_protosw_add(const char *name, uint16_t domai
* @return
* NULL on error or a pointer to a protocol switch entry.
*/
CNDP_API struct protosw_entry *cnet_protosw_find(uint16_t domain, uint16_t type, uint16_t proto);
CNDP_API struct protosw_entry *cnet_protosw_find(int domain, int type, int proto);

/**
* @brief Dump out the list of protocol switch values.