diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-04-22 16:23:46 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-22 16:23:46 +0200 |
commit | 5f06441c06d46499743689468971ecea9e14f984 (patch) | |
tree | 2aa88c575952d4a2ec59d94fd1bc809fc7da33ca /trafgen_l3.c | |
parent | f2478b5dde8fcdfa1bf33065e0e55c4bd181a1d2 (diff) |
trafgen: proto: Replace panic() with bug() where applicable
In some cases we use panic() in situations where the error could only
happen due to an implementation error. Use bug() there as it is more
applicable, as panic() is mainly used to report system call errors.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l3.c')
-rw-r--r-- | trafgen_l3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_l3.c b/trafgen_l3.c index 0e923e0..88766ea 100644 --- a/trafgen_l3.c +++ b/trafgen_l3.c @@ -76,7 +76,7 @@ static void ipv4_set_next_proto(struct proto_hdr *hdr, enum proto_id pid) ip_proto = IPPROTO_TCP; break; default: - panic("ipv4: Not supported protocol id %u\n", pid); + bug(); } proto_field_set_default_u8(hdr, IP4_PROTO, ip_proto); |